setTag:
アクションセルにタグ値をセットします
-(void)setTag:(NSInteger)anInt:
解説
アクションセルにタグ値(anInt)をセットします。
返り値
( void )
なし
引数
( NSInteger )anInt
セットするタグ値
フレームワーク
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