color
カラーパネルの現在選択されているカラーを返します
解説
カラーパネルの現在選択されているカラーを返します。
返り値
( NSColor * )
カラー
引数
フレームワーク
ApplicationKit
クラス
NSColorPanel
Instance Methods
使用可能
10.0
参照
- setColor:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSColorPanel *cPanel = [NSColorPanel sharedColorPanel]; [cPanel setShowsAlpha:YES]; [[NSApplication sharedApplication] orderFrontColorPanel:cPanel]; NSLog([[cPanel color] colorSpaceName]); } @end