tag
レシーバーのタグ値を返します
解説
レシーバーのタグ値を返します。NSActionCellで実装されます。NSCellの実装は、-1を返します。
返り値
( int )
整数値
引数
フレームワーク
ApplicationKit
クラス
NSCell
Instance Methods
使用可能
10.0
参照
- setTag:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [bCell1 setTag:1]; NSLog([NSString stringWithFormat:@"%d",[bCell1 tag]]); } @end