Associating Objective-C objects with Java objects using JNI
Associating Objective-C objects with Java objects using JNI
- Subject: Associating Objective-C objects with Java objects using JNI
- From: Kelvin Chung <email@hidden>
- Date: Tue, 5 May 2009 23:54:27 -0600
I'm trying to find a good way of associating an Objective-C object
with an arbitrary Java object, so that you could essentially delegate
the Objective-C method call to a Java object. I envision that this
would have to be done using JNI. However, I don't know the specifics
of how it can be done.
My eventual objective actually is to write a Java annotation processor
that would generate an Objective-C class Bar from a Java class Foo.
The idea would be that Bar would be associated with Foo, and any
specially-annotated methods in Foo would have a counterpart in Bar, so
that a Bar instance would call the corresponding Foo method. (This
could then extend to, say, writing Cocoa controller code)
Is there someone experienced who could shed a light on this matter?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden