macOS/iOS API解説

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

目次

classDescriptionWithAppleEventCode:

指定したスイートのクラス定義をスクリプトクラス定義オブジェクトで返します
-(NSScriptClassDescription *)classDescriptionWithAppleEventCode:(unsigned long)code:

解説

アップルイベントコードで指定したスイートに含まれるクラス定義をスクリプトクラス定義オブジェクトで返します。

返り値

( NSScriptClassDescription * )

クラス説明

引数

( unsigned long )code

アップルイベント・コード

クラス

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]]);
}