boxType
ボックスのボックスタイプを返します
解説
ボックスのボックスタイプを返します。
初期設定は、NSBoxPrimaryです。
【NSBoxType】
NSBoxPrimary 標準
NSBoxSecondary 10.3からと同じ
NSBoxSeparator 縦と横が別れている。サブビューでは使わない
NSBoxOldStyle 10.2以前のスタイル
10.5以降
NSBoxCustom カスタム
返り値
( NSBoxType )
ボックスタイプ
● NSBoxPrimary 透明グレー
● NSBoxSecondary
● NSBoxSeparator グレー
● NSBoxOldStyle 線
引数
フレームワーク
ApplicationKit
クラス
NSBox
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject //myOutletÇÕNSBox - (IBAction)myAction:(id)sender { switch ([myOutlet boxType]){ case NSBoxPrimary: NSLog(@"NSBoxPrimary"); [myOutlet setBoxType:NSBoxSecondary]; break; case NSBoxSecondary: NSLog(@"NSBoxSecondary"); [myOutlet setBoxType:NSBoxSeparator]; break; case NSBoxSeparator: NSLog(@"NSBoxSeparator"); [myOutlet setBoxType:NSBoxOldStyle]; break; case NSBoxOldStyle: NSLog(@"NSBoxOldStyle"); [myOutlet setBoxType:NSBoxPrimary]; break; #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 case NSBoxCustom: NSLog(@"NSBoxCustom"); [myOutlet setBoxType:NSBoxCustom]; break; #endif } [myOutlet display]; } @end