setSelectionIndexes:
指定した番号のみを選択にします
-(BOOL)setSelectionIndexes:(NSIndexSet *)indexes:
解説
指定した番号のみを選択にします。
返り値
( BOOL )
YES/NO
引数
( NSIndexSet * )indexes
フレームワーク
ApplicationKit
クラス
NSArrayController
Instance Methods
使用可能
10.3
参照
-selectionIndexes
-setSelectionIndex:
例文
- (IBAction)selection:(id)sender; { [myOutlet setSelectionIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0,1)]]; }