deselectRow:
番号で指定した行の選択を外します
-(void)deselectRow:(int)rowIndex:
解説
番号で指定した行の選択を外します。
選択が変更されれば、デフォルトの通知センターへNSTableViewSelectionDidChangeNotificationがポストされます。
返り値
( void )
なし
引数
( int )rowIndex
行番号
フレームワーク
ApplicationKit
クラス
NSTableView
Instance Methods
使用可能
10.0
参照
- selectedRow
- allowsEmptySelection
例文
- (IBAction)myAction:(id)sender;// { [table setAllowsMultipleSelection:YES]; [table selectRow:1 byExtendingSelection:YES]; [table selectRow:2 byExtendingSelection:YES]; [table deselectRow:2]; }