From: Panayotis K. <pan...@pa...> - 2010-11-30 18:38:21
|
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 |