insertEntry:atIndex:
指定位置に新しいセルを加えてタイトルを追加して、そのセルを返します
-(NSFormCell *)insertEntry:(NSString *)title: atIndex:(int)entryIndex:
解説
指定位置(index)に新しいセルを加えてタイトル(title)を追加して、そのセルを返します。
返り値
( NSFormCell * )
挿入したフォームセル
引数
( NSString * )title
挿入するタイトル
( int )entryIndex
挿入する位置
フレームワーク
ApplicationKit
クラス
NSForm
Instance Methods
使用可能
10.0
参照
- addEntry:
- removeEntryAtIndex:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [form1 insertEntry:@"form" atIndex:1]; } @end