macOS/iOS API解説

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

目次

suiteForAppleEventCode:

指定したイベントコードのスイート名を返します
-(NSString *)suiteForAppleEventCode:(unsigned long)code:

解説

指定したイベントコードのスイート名を返します。

返り値

( NSString * )

スイート定義名

引数

( unsigned long )code

アップルイベントコード

クラス

NSScriptSuiteRegistry

Instance Methods

使用可能

10.0

参照

- suiteNames

例文

#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