enableKeyEquivalentForDefaultButtonCell
デフォルトボタンを使用可能にします
- (void)enableKeyEquivalentForDefaultButtonCellfunc enableKeyEquivalentForDefaultButtonCell()
解説
デフォルトボタンを使用可能にします。
使いドコロがわからない...。
返り値
( void )
なし
引数
フレームワーク
ApplicationKit
クラス
NSWindow
使用可能
10.0
参照
- disableKeyEquivalentForDefaultButtonCell
更新時のバージョン
OS X 10.10
関連記事(外部サイト)
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSButtonCell *bCell = [myWindow defaultButtonCell]; [bCell setTitle:@"1"]; [myWindow disableKeyEquivalentForDefaultButtonCell]; } - (IBAction)defaultButtonAction:(id)sender; { NSLog(@"!!"); [myWindow enableKeyEquivalentForDefaultButtonCell]; } @end