setUsesFontPanel:
レシーバーがフォントパネルとフォントメニューを使うかどうかセットします
-(void)setUsesFontPanel:(BOOL)flag:
解説
レシーバーがフォントパネルとフォントメニューを使うかどうかセットします。
YESをせっとするとフォントパネルとフォントメニューを使う事ができます。
初期設定は、NSTextオブジェクトは、フォントパネルとメニューを使います。
返り値
( void )
なし
引数
( BOOL )flag
フォントパネルを使うかYES/NO
フレームワーク
ApplicationKit
クラス
NSText
Instance Methods
使用可能
10.0
参照
- usesFontPanel
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [myOutlet setUsesFontPanel:YES]; if ([myOutlet usesFontPanel]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end