insertItemWithObjectValue:atIndex:
コンボボックスのindex番目にオブジェクトを挿入します
-(void)insertItemWithObjectValue:(id)anObject: atIndex:(int)index:
解説
コンボボックスのindex番目にオブジェクト(anObject)を挿入します。
返り値
( void )
なし
引数
( id )anObject
( int )index
フレームワーク
ApplicationKit
クラス
NSComboBox
Instance Methods
使用可能
10.0
参照
- addItemWithObjectValue:
- numberOfItems
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [myOutlet insertItemWithObjectValue:@"yonn" atIndex:4]; NSLog([NSString stringWithFormat:@"%d",[myOutlet numberOfItems]]); } @end