setTransparent:
ボタンが透明かどうかセットして書き直します
-(void)setTransparent:(BOOL)flag:
解説
ボタンが透明かどうかセットして書き直します。
透明なボタンは描画されませんが、マウスイベントは受け付けます。
返り値
( void )
なし
引数
( BOOL )flag
YES/NO
フレームワーク
ApplicationKit
クラス
NSButton
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [sender setTransparent:YES]; [myOutlet setTransparent:[sender isTransparent]]; } @end