accessoryView
カラーパネルについているアクセサリービューを返します
解説
カラーパネルについているアクセサリービューを返します。
なにもなければnilを返します。
返り値
( NSView * )
ビュー
引数
フレームワーク
ApplicationKit
クラス
NSColorPanel
Instance Methods
使用可能
10.0
参照
- setAccessoryView:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSColorPanel *cPanel = [NSColorPanel sharedColorPanel]; [cPanel setAccessoryView:customView]; [[NSApplication sharedApplication] orderFrontColorPanel:cPanel]; NSLog([[cPanel accessoryView] className]); } @end