macOS/iOS API解説

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

目次

sendEventWithClass:id:format:

指定したイベントを送信します
-(id)sendEventWithClass:(AEEventClass)eventClass:
               ID:(AEEventID)eventID:
               format:(const char 
*)format, ... :

解説

指定したイベントを送信します。

返り値

( id )

引数

( AEEventClass )eventClass

イベントクラス

( AEEventID )eventID

イベントID

( const char 
* )format, ... 

送信イベント

フレームワーク

ScriptingBridge

クラス

SBApplication

使用可能

10.5

参照

- delegate
- eventDidFail:withError: (SBApplicationDelegate)

例文

//ドキュメント作る
id newDocument =[indesign sendEventWithClass:'core' ID:'crel' format:"kocl:'docu'" ];