From: Tomas V. <tom...@gm...> - 2010-12-02 13:20:14
|
Hi, Arno: Yes, that's what I thought. So right now I'm trying to do a demo using only Java and cross compiling it to Obj-C code. I'm also trying to implement missing classes (now UITextViewDelegate) by first writing the stub in Java, cc:ing it to Obj-C and filling in the methods. Personally I found the C backend code much harder to understand but I haven't done a lot of C or Obj-C coding. How exactly is supposed to be used? Panayotis: Thank you, that is a perfect example. I'm currently trying to implement everything in Java but I think I will try something similar to the Zip plugin after to evaluate the options. If I implement classes on my own I would of course like to contribute and upload them. What worries me is that as I haven't done any Obj-C before, I'm currently reading about it and how it works so I'm not completely lost. When I'm implementing a new class I'm also looking at other similar classes that are implemented. But I can't be 100% sure that it's correct, how should I proceed then? Best regards, Tomas Vestelind On 30 November 2010 19:37, Panayotis Katsaloulis <pan...@pa...>wrote: > > On Nov 30, 2010, at 8:18 PM, Arno Puder wrote: > > > > > the preferred way is to do as much as possible in Java and then > > cross-compile to Objective-C. If you already have an Objective-C class > > that you want to expose in Java, you need to create a Java stub and then > > write some "glue" code in Objective-C that bridges the Java API to the > > Objective-C API. This is necessary because of the certain differences > > between the languages. E.g., we have to use name mangling when > > cross-compiling from Java to Objective-C and the "glue" code needs to do > > a mapping from the mangled version of a name to the original version. > > You can also take advantage of the "plugin" mechanism. > To see a demo of this convenient way, have a look at the directory > demo/iphome/plugins/Zip > > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > -- Quand on veut un mouton, c'est la preuve qu'on existe |