numberOfItems
ポップアップボタンの項目数を返します
解説
ポップアップボタンの項目数を返します
返り値
( int )
整数値
引数
フレームワーク
ApplicationKit
クラス
NSPopUpButton
Instance Methods
使用可能
10.0
参照
- lastItem
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //myOutletはポップアップボタン NSLog ([NSString stringWithFormat:@"%d",[myOutlet numberOfItems]]); } @end