setDescriptor:forKeyword:
デスクリプタにキーワード、イベントをセットします
-(void)setDescriptor:(NSAppleEventDescriptor *)descriptor: forKeyword:(AEKeyword)keyword:
解説
デスクリプタにキーワード、イベントをセットします。
レシーバはアップルイベントかアップルイベントレコード
返り値
( void )
なし
引数
( NSAppleEventDescriptor * )descriptor
アップルイベントデスクリプタ
( AEKeyword )keyword
アップルイベントキーワード
フレームワーク
Foundation
クラス
NSAppleEventDescriptor
Instance Methods
使用可能
10.0
参照
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSAppleEventDescriptor *desc1=[ NSAppleEventDescriptor recordDescriptor ]; NSAppleEventDescriptor *aeDesc=[ NSAppleEventDescriptor recordDescriptor ]; [ aeDesc setDescriptor:desc1 forKeyword:'usrf' ]; NSLog([NSString stringWithFormat:@"%d",[aeDesc numberOfItems]]); } @end