0-02-08 tag ApplicationKit NSActionCell 10.0- アクションセルのタグ値を返します 解説 アクションセルのタグ値を返します。 返り値 ( NSInteger ) 整数値 引数 フレームワーク ApplicationKit クラス NSActionCell Instance Methods 使用可能 10.0 参照 例文 #import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //but1はNSTextFieldCell [but1 setTag:3]; NSLog(@"%d",[but1 tag]); } @end