Hi,

To not write the bro stuff manually I fired up xtext yesterday and created a small DSL which holds the (relevant) Header-Information and generates the Bro-Files for you.

You can see the input https://github.com/tomsontom/objcgenerator/tree/master/bundles/at.bestsolution.objc.mapper.cocoatouch/mappings and output https://github.com/tomsontom/objcgenerator/tree/master/bundles/at.bestsolution.objc.mapper.cocoatouch/src/main/java/org/robovm/cocoatouch/corelocation .

Currently it is bound to Eclipse but I could add support to run the mapper on the command line as well.

Tom

On 04.07.13 18:16, Tom Schindl wrote:
Robovm does that without jni it is called bro

Tom

Von meinem iPhone gesendet

Am 04.07.2013 um 17:44 schrieb Tobias Bley <[email protected]>:

Hi,

after successfully using JavaFX (including font and CSS) on iOS I tried to call 
native code on iPhone. I successfully fetched and visualized the battery level 
of the iPhone!

To do this I wrote objective c code and bind it to Java via JNI. No problem so 
far.



But what I would like to do is using a technology like JNA to directly access 
Cocoa frameworks without writing native JNI code. Does anybody knows if JNA (or 
something else) could also be used in RoboVM?

Best regards,
Tobi




Reply via email to