2010-09-28 84 views
0

我woudl喜欢用SBApplication的SendEventSBApplication:如何发送原始数据

Unfortunaltly我发现没有这方面的文档发送原始数据(一个void *)。

你有什么想法做到这一点?

预先感谢夜的帮助,

问候,

回答

1

sendEvent:id:parameters:实际上是所有SBObjects回应,不只是SBApplications的消息。 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对象,并通过这一点。