setSelectionIndex:
指定した番号の行を選択します
-(BOOL)setSelectionIndex:(unsigned int)index:
解説
指定した番号の行を選択します。
選択できればYESを返します。
返り値
( BOOL )
YES/NO
引数
( unsigned int )index
フレームワーク
ApplicationKit
クラス
NSArrayController
Instance Methods
使用可能
10.3
参照
-selectionIndex
-setSelectionIndexes:
例文
([myOutlet setSelectionIndex:3]) ? NSLog(@"YES") : NSLog(@"NO") ;