isRowSelected:
番号で指定した行は選択されているかを返します
-(BOOL)isRowSelected:(int)rowIndex:
解説
番号で指定した行(rowIndex)は選択されているかを返します。
選択されている場合はYESを返します。
選択されていいない場合はNOを返します。
返り値
( BOOL )
YES/NO
引数
( int )rowIndex
行番号
フレームワーク
ApplicationKit
クラス
NSTableView
Instance Methods
使用可能
10.0
参照
- selectedRow
- selectedRowEnumerator
- selectRow:byExtendingSelection:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { if ([myOutlet isRowSelected:0]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end