insertItemWithObjectValue:atIndex:
指定したオブジェクトを指定した番号に挿入します
-(void)insertItemWithObjectValue:(id)anObject: atIndex:(int)index:
解説
指定したオブジェクトを指定した番号に挿入します。
返り値
( void )
なし
引数
( id )anObject
オブジェクト
( int )index
番号
フレームワーク
ApplicationKit
クラス
NSComboBoxCell
Instance Methods
使用可能
10.0
参照
- addItemWithObjectValue:
- numberOfItems
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [comboCell1 insertItemWithObjectValue:@"add" atIndex:2]; } @end