titleOfSelectedItem
選択中の項目のタイトルを文字列として返します
解説
選択中の項目のタイトルを文字列(NSString)として返します。
返り値
( NSString * )
タイトル文字列
引数
フレームワーク
ApplicationKit
クラス
NSPopUpButton
Instance Methods
使用可能
10.0
参照
- indexOfSelectedItem
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //myOutletはポップアップボタン NSLog ([myOutlet titleOfSelectedItem]); } @end