macOS/iOS API解説

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

目次

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