numberOfVisibleItems
表示される項目の数を返します
解説
表示される項目の数を返します
返り値
( int )
整数値
引数
フレームワーク
ApplicationKit
クラス
NSComboBox
Instance Methods
使用可能
10.0
参照
-numberOfItems
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSArray *arr1 = [NSArray arrayWithObjects:@"aaa", @"bbb", nil]; [myOutlet addItemsWithObjectValues:arr1]; NSLog([NSString stringWithFormat:@"%d",[myOutlet numberOfVisibleItems]]); } @end