insertDescriptor:atIndex:
指定した位置にデスクリプタを挿入します
-(void)insertDescriptor:(NSAppleEventDescriptor *)descriptor: atIndex:(long int)anIndex:
解説
指定した位置にデスクリプタを挿入します。レシーバはリストデスクリプタ。
返り値
( void )
なし
引数
( NSAppleEventDescriptor * )descriptor
( long int )anIndex
挿入位置
フレームワーク
Foundation
クラス
NSAppleEventDescriptor
Instance Methods
使用可能
10.0
参照
- descriptorAtIndex:
- removeDescriptorAtIndex:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSAppleEventDescriptor *aeDesc=[ [NSAppleEventDescriptor alloc] init]; NSAppleEventDescriptor *ins=[ [NSAppleEventDescriptor alloc] init]; [aeDesc insertDescriptor:ins atIndex:1 ]; NSLog([aeDesc description]); } @end