classDescriptionWithAppleEventCode:
指定したスイートのクラス定義をスクリプトクラス定義オブジェクトで返します
-(NSScriptClassDescription *)classDescriptionWithAppleEventCode:(unsigned long)code:
解説
アップルイベントコードで指定したスイートに含まれるクラス定義をスクリプトクラス定義オブジェクトで返します。
返り値
( NSScriptClassDescription * )
クラス説明
引数
( unsigned long )code
アップルイベント・コード
フレームワーク
Foundation
クラス
NSScriptSuiteRegistry
Instance Methods
使用可能
10.0
参照
- classDescriptionsInSuite:
- registerClassDescription:
例文
- (IBAction)myAction:(id)sender; { NSScriptSuiteRegistry *sRegistry =[NSScriptSuiteRegistry sharedScriptSuiteRegistry]; NSScriptClassDescription *scd = [sRegistry classDescriptionWithAppleEventCode:'MyOb']; NSLog([NSString stringWithFormat:@"%@",[scd className]]); }