macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

invalidateAttributesInRange:

指定した範囲の属性を無効にします
-(void)invalidateAttributesInRange:(NSRange)range:

解説

指定した範囲の属性を無効にします。

返り値

( void )

なし

引数

( NSRange )range

範囲

フレームワーク

ApplicationKit

クラス

NSTextStorage

Instance Methods

使用可能

10.0

参照

例文

- (IBAction)invalidate:(id)sender;
{
NSTextStorage*	textStorage = [myOutlet textStorage];
//属性無効
[textStorage invalidateAttributesInRange:NSMakeRange(2,3)];
[[sender window] display];

}