• 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
jni and core foundation classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

jni and core foundation classes


  • Subject: jni and core foundation classes
  • From: Danny Swarzman <email@hidden>
  • Date: Sat, 27 Aug 2005 16:57:51 -0700

With the Java Bridge, there are classes corresponding to the core foundation classes. For example NSDictionary.

When you call a native method, the an NSDictionary object is passed as an opaque reference. You can use jni functions to get at its contents.

So if you want to pass the contents of the object to a function that expects an NSDictionary in Objective-C, you need to copy its contents into a new NSDictionary.

Is there an easier way. Is there a function that takes the opaque object and efficiently converts it into an object that can be used directly by other Cocoa functions?

-Danny Swarzman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: statfs - results vary - why?
  • Next by Date: stringWithContentsOfURL:usedEncoding:error: Fails on Mac Roman?
  • Previous by thread: statfs - results vary - why?
  • Next by thread: stringWithContentsOfURL:usedEncoding:error: Fails on Mac Roman?
  • Index(es):
    • Date
    • Thread