macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

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];
}