itemTitleAtIndex:
番号で指定したポップアップボタンの項目のタイトルを返します
-(NSString *)itemTitleAtIndex:(int)index:
解説
番号(index)で指定したポップアップボタンの項目のタイトルを返します。
指定した番号(index)の項目がなければ空の文字列を返します。
返り値
( NSString * )
タイトル文字列
引数
( int )index
番号
フレームワーク
ApplicationKit
クラス
NSPopUpButton
Instance Methods
使用可能
10.0
参照
- itemTitles
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //myOutletはポップアップボタン NSLog ([myOutlet itemTitleAtIndex:1]); } @end