showsAlpha
アルファ値と不透明度スライダーを表示するかを返します
解説
アルファ値と不透明度スライダーを表示するかを返します。
返り値
( BOOL )
YES/NO
引数
フレームワーク
ApplicationKit
クラス
NSColorPanel
Instance Methods
使用可能
10.0
参照
- alpha
- setShowsAlpha:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSColorPanel *cPanel = [NSColorPanel sharedColorPanel]; [cPanel setShowsAlpha:YES]; [[NSApplication sharedApplication] orderFrontColorPanel:cPanel]; if ([cPanel showsAlpha]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end