setAllowsMixedState:
ボタンの状態、Mixedが使用可能かセットします
-(void)setAllowsMixedState:(BOOL)flag:
解説
ボタンの状態、Mixedが使用可能かセットします。
YESならMixed,on,off
NOならon,offのみ
返り値
( void )
なし
引数
( BOOL )flag
YES/NO
フレームワーク
ApplicationKit
クラス
NSButton
使用可能
10.0
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [sender setAllowsMixedState:YES]; //senderはボタン if ([sender allowsMixedState]){ [sender setTitle:@"YES"];} else{ [sender setTitle:@"NO"];} } @end