macOS/iOS API解説

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

目次

insertDescriptor:atIndex:

指定した位置にデスクリプタを挿入します
-(void)insertDescriptor:(NSAppleEventDescriptor *)descriptor:
                    atIndex:(long int)anIndex:

解説

指定した位置にデスクリプタを挿入します。レシーバはリストデスクリプタ。

返り値

( void )

なし

引数

( NSAppleEventDescriptor * )descriptor
( long int )anIndex

挿入位置

クラス

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