setDelegate:
デリゲートをセットします
-(void)setDelegate:(id)anObject:
解説
デリゲートをセットします。
返り値
( void )
なし
引数
( id )anObject
オブジェクト
フレームワーク
ApplicationKit
クラス
NSTextStorage
Instance Methods
使用可能
10.0
参照
- delegate
例文
- (IBAction)myAction:(id)sender { NSTextStorage* textStorage = [myOutlet textStorage]; //デリゲートセット [textStorage setDelegate:self]; NSLog([[textStorage delegate] className]); }