I guess you basically understand how we map the Cocoa API to the Java
version ;-) So probably your question is about the selector argument of
the call you pointed us to.
Basically we decided to map this kind of API to a strongly typed
interface. For the implementation that means
* we define an interface which specifies a callback method
* so our API's version of the method you mentioned does not have the
selector parameter
* our Objective C implementation would pass
action:@selector(<callbackMethod>) to initWithBarButtonSystemItem
As an example have a look at the already existing method
UIControl.addTarget in the following files: UIControl.java,
UIControlDelegate.java and org_xmlvm_iphone_UIControl.m
If this doesn't help please let me know.
-- Wolfgang
Panayotis Katsaloulis wrote:
> Here is another question ;-)
> I'm sure you'll get sick of me :P
>
> This time has to do with selectors.
> I am not familiar with the low level details of the conversion of java
> bytecode to XML. I hope the answer to this question is not obvious!
>
> How are selectors actually handled by this system? How do you think
> they can be emulated in the native part?
>
> Let's take this example found here:
>
> http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIBarButtonItem_Class/Reference/Reference.html#/
> /apple_ref/occ/instm/UIBarButtonItem/
> initWithBarButtonSystemItem:target:action:
>
> How do you propose to implement this in java and native objective c?
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> xmlvm-users mailing list
> xml...@li...
> https://lists.sourceforge.net/lists/listinfo/xmlvm-users
>
|