macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

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