macOS/iOS API解説

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

目次

appleEventCodeForSuite:

指定したスイートのアップルイベントコードを返します
-(unsigned long)appleEventCodeForSuite:(NSString *)suiteName:

解説

指定したスイートのアップルイベントコードを返します。

返り値

( unsigned long )

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

引数

( NSString * )suiteName

スイート名

クラス

NSScriptSuiteRegistry

Instance Methods

使用可能

10.0

参照

- suiteForAppleEventCode:

例文

#import "Controller.h"

@implementation Controller

- (IBAction)pushButton:(id)sender
{
NSScriptSuiteRegistry *sRegistry =[NSScriptSuiteRegistry sharedScriptSuiteRegistry];
unsigned long fourChr = 'ASts';//これはスイートのコードなので状況によって違う

NSLog([NSString stringWithFormat:@"%@",[[sRegistry suiteForAppleEventCode:fourChr] description]]);
}

@end