numberOfItems
ポップアップリストのアイテムの総数を返します
解説
ポップアップリストのアイテムの総数を返します。
返り値
( int )
整数値
引数
フレームワーク
ApplicationKit
クラス
NSComboBoxCell
Instance Methods
使用可能
10.0
参照
- numberOfVisibleItems
- numberOfItemsInComboBoxCell:(NSComboBoxCellDataSource protocol)
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSLog([NSString stringWithFormat:@"%d",[comboCell1 numberOfItems]]); } @end