SBApplication sendEvent を使用して生データ (void*) を送信したい
残念ながら、これに関するドキュメントは見つかりませんでした。
これを達成するためのアイデアはありますか?
よろしくお願いします。
よろしく、
SBApplication sendEvent を使用して生データ (void*) を送信したい
残念ながら、これに関するドキュメントは見つかりませんでした。
これを達成するためのアイデアはありますか?
よろしくお願いします。
よろしく、
sendEvent:id:parameters:
実際には、SBApplications だけでなく、すべての SBObjects が応答するメッセージです。SBObject.h は言います:
// Send an Apple event. The direct parameter is the specifier of the receiver if it // is non-null. Other parameters are given using "parameters:" as a list of pairs // of the parameter four-byte code followed by an Objective-C object; use a parameter // code of 0 to mark the end of the list.
したがって、データを NSData オブジェクトにボックス化し、それを渡してみてください。