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