0

SBApplication sendEvent を使用して生データ (void*) を送信したい

残念ながら、これに関するドキュメントは見つかりませんでした。

これを達成するためのアイデアはありますか?

よろしくお願いします。

よろしく、

4

1 に答える 1

1

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 オブジェクトにボックス化し、それを渡してみてください。

于 2010-09-28T21:50:25.403 に答える