allowsEmptySelection
どれも選択していない状態を許可するかを返します
解説
どれも選択していない状態を許可するかを返します。
どれも選択していない状態を許可する場合はYESを返します。
許可しない場合は、NOをセットします。
他の設定と違って、プログラム上でもこの設定に従います。
返り値
( BOOL )
YES/NO
引数
フレームワーク
ApplicationKit
クラス
NSTableView
Instance Methods
使用可能
10.0
参照
- deselectAll:
- deselectColumn:
- deselectRow:
- setAllowsEmptySelection:
例文
//アプリケーションのデリゲート //起動直後 - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { array = [[NSMutableArray array] retain]; [table setDataSource:self];//テーブルにデータを提供するオブジェクト=self [window makeKeyAndOrderFront:nil]; [form selectTextAtIndex:0]; [table setAllowsEmptySelection:NO]; if ([table allowsEmptySelection]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } }