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