indexOfCellWithTag:
指定したタグのフォームのインデックスを返します
-(int)indexOfCellWithTag:(int)tag:
解説
指定したタグ(tag)のフォームのインデックスを返します。
返り値
( int )
整数値
引数
( int )tag
タグ
フレームワーク
ApplicationKit
クラス
NSForm
Instance Methods
使用可能
10.0
参照
- tag (NSCell)
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSLog([NSString stringWithFormat:@"%d",[form1 indexOfCellWithTag:20]]); } @end