From: Arno P. <ar...@pu...> - 2011-05-20 01:19:20
|
On 5/19/11 4:35 PM, Panayotis Katsaloulis wrote: > I have two questions: > > 1) what is the reason of this variable > > static NSObject* dispatchObject = nil; > > in the NSObject class of the C backend? The C wrapper use this object to call the performSelectorOnMainThread: method on a real Objective-C object. > 2) I have a JAVA_OBJECT , say "o1" > This object, (in java) it has a specific method, let's say > public void myMethod(Object val) {..} > > How do I call this method from inside C, given I have the pointer o1 of this object? It depends if the call is made through an interface type or class type. I suggest that you write a mini-Java program that does this call (in Java) and then cross-compile it with --target=posix. Then you can look at the generated code. Arno |