bezelStyle
解説
ボタンの形状を返します。
【ボタンの形状】
NSBezelStyle - Cocoa API解説(iOS/OS X)
Push
Check
Radio
Round
Square
Disclosure Triangle
Textured
Help
Gradient
Round Texture
Disclusure
RoundRect
Receseed
Inline
ボタンの形状
フレームワーク
ApplicationKit
クラス
NSButton
使用可能
10.0
関連記事(外部サイト)
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //senderはボタン [sender setBezelStyle : NSRegularSquareBezelStyle ]; if ([sender bezelStyle] == NSRegularSquareBezelStyle){ NSLog(@"NSRegularSquareBezelStyle"); }else{ NSLog(@"other style"); } } @end