setTransparent:
レシーバが透明かをセットします
-(void)setTransparent:(BOOL)flag:
解説
レシーバが透明かをセットします
再描画されませんのでdisplay:などで更新が必要です。
透明な状態でもマウスイベントは受けられます。
返り値
( void )
なし
引数
( BOOL )flag
透明かYES/NO
フレームワーク
ApplicationKit
クラス
NSButtonCell
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //bCell1はボタンセル [bCell1 setTransparent:YES]; if ([bCell1 isTransparent]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end