macOS/iOS API解説

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

目次

ensureAttributesAreFixedInRange:

指定した範囲の属性が決定されているのを確認します
-(void)ensureAttributesAreFixedInRange:(NSRange)range:

解説

指定した範囲の属性が決定されているのを確認します。

返り値

( void )

なし

引数

( NSRange )range

範囲

フレームワーク

ApplicationKit

クラス

NSTextStorage

Instance Methods

使用可能

10.0

参照

例文

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

}