suiteForAppleEventCode:
指定したイベントコードのスイート名を返します
-(NSString *)suiteForAppleEventCode:(unsigned long)code:
解説
指定したイベントコードのスイート名を返します。
返り値
( NSString * )
スイート定義名
引数
( unsigned long )code
アップルイベントコード
フレームワーク
Foundation
クラス
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