activate:
カラーウエルをアクティブにするかをセットします
-(void)activate:(BOOL)exclusive:
解説
カラーウエルをアクティブにするかをセットします。
返り値
( void )
なし
引数
( BOOL )exclusive
YES/NO
フレームワーク
ApplicationKit
クラス
NSColorWell
Instance Methods
使用可能
10.0
参照
- deactivate
- isActive
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { if ([myColorwell isActive]){ [myColorwell deactivate]; NSLog(@"Not Active"); }else{ [myColorwell activate:YES]; NSLog(@"Active"); } } @end