setAllowsEditingTextAttributes:
テキスト属性を変更できるかをセットします
-(void)setAllowsEditingTextAttributes:(BOOL)flag:
解説
テキスト属性を変更できるかをセットします。
NOをセットすると、グラフィックスをインポートする(RTFDテキストをサポートする)ことができなくなります。
返り値
( void )
なし
引数
( BOOL )flag
YES/NO
フレームワーク
ApplicationKit
クラス
NSCell
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //セット [bCell1 setAllowsEditingTextAttributes:NO]; if ([bCell1 allowsEditingTextAttributes]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end