title
ボタンセルのタイトルを返します
解説
ボタンセルのタイトルを返します
普通の状態のボタンのタイトルを返します。
代理の状態のタイトルがなければ、常に表示されます
タイトルがなければ、空の文字列を返します
初期設定のタイトルは、「Button」です。
返り値
( NSString * )
タイトル文字列
引数
フレームワーク
ApplicationKit
クラス
NSButtonCell
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //bCell1はボタンセル NSString *string = [bCell1 title]; NSLog(string); } @end