indexOfSelectedItem
最後の選択項目の番号を返します
解説
最後の選択項目の番号を返します。なにも選択されなければ-1を返します。
返り値
( int )
整数値
引数
フレームワーク
ApplicationKit
クラス
NSComboBoxCell
Instance Methods
使用可能
10.0
参照
- objectValueOfSelectedItem
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [comboCell1 selectItemAtIndex:2]; NSLog([NSString stringWithFormat:@"%d",[comboCell1 indexOfSelectedItem] ]); } @end