setTextStorage:
レイアウトマネージャーにテキストストレージをセットします
-(void)setTextStorage:(NSTextStorage *)textStorage:
解説
レイアウトマネージャーにテキストストレージをセットします。自動的に呼び出されるので直接呼び出す必要はありません。サブクラスでオーバーライドできます。
返り値
( void )
なし
引数
( NSTextStorage * )textStorage
テキストストレージ
フレームワーク
ApplicationKit
クラス
NSLayoutManager
Instance Methods
使用可能
10.0
参照
- addLayoutManager:(NSTextStorage)
-replaceTextStorage
例文
#import "MyLayoutManager.h" @implementation MyLayoutManager - (void)setTextStorage:(NSTextStorage *)textStorage { NSLog(@"called setTextStorage of MyLayoutManager"); [super setTextStorage:textStorage]; } @end