• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Associating Objective-C objects with Java objects using JNI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Associating Objective-C objects with Java objects using JNI
      • From: Scott Ribe <email@hidden>
    • Re: Associating Objective-C objects with Java objects using JNI
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: instantiateNibWithOwner: fails due to "mutated while enumerated"
  • Next by Date: Re: Associating Objective-C objects with Java objects using JNI
  • Previous by thread: Re: Minimize All - sends what?
  • Next by thread: Re: Associating Objective-C objects with Java objects using JNI
  • Index(es):
    • Date
    • Thread