setShowsStateBy:
調査中
-(void)setShowsStateBy:(int)aType:
解説
ボタンが代理を表示する方法をセットします。
【aType】
● NSNoCellMask
変わらない。これが初期設定です。
● NSContentsCellMask
代理のアイコンやタイトルを表示する。
● NSChangeGrayCellMask
その背景とアイコンの上で「コントロールカラー」(NSColorのcontrolColor)と白いピクセルを交換する。
● NSChangeBackgroundCellMask
NSChangeGrayCellMaskと同じもの、しかし、背景ピクセルだけは、変わる。
● NSChangeGrayCellMaskとNSChangeBackgroundCellMaskが指定されるならば、両方とも記録される、しかし、実際の挙動はボタンセルの画像に依存する。
返り値
( void )
なし
引数
( int )aType
フレームワーク
ApplicationKit
クラス
NSButtonCell
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //bCell1はボタンセル NSLog([NSString stringWithFormat:@"%d",[bCell1 showsStateBy]]); [bCell1 setShowsStateBy:NSContentsCellMask]; NSLog([NSString stringWithFormat:@"%d",[bCell1 showsStateBy]]); } @end