• 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
JavaBridge question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JavaBridge question


  • Subject: JavaBridge question
  • From: Rolf <email@hidden>
  • Date: Sun, 29 Jun 2003 11:34:49 +0200

Hi

My Cocoa objective-C app includes a few Java classes. One of the Java class methods returns a Vector (java/util/Vector). On the Objective C side I simply declare the Vector result as id, and this works fine - I can acquire the contents of the Vector object, add new objects to the Vector
object and so forth. But there are 2 things I'm unsure of:
1. This might be a dumb question, but is this class still a 100% "java.util.Vector" class on the Objective C side, or has it been "bridgded" to a native Objective C class ? A NSLog(@"Class=%@",[result class]) returns "java/util/Vector" so I guess not. Attempting to use it as NSMutableArray
(which I guess it the class that mostly resembles Vector) does not work.
2. What memory management rules apply on the Objective C side to java objects ? Can I trust Java's garbage collector 100% on Java objects that are passed on to Objective C code ?

/Rolf
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: JavaBridge question
      • From: Thomas Finley <email@hidden>
  • Prev by Date: NSImage drawing way too small
  • Next by Date: C program translation
  • Previous by thread: Re: NSImage drawing way too small
  • Next by thread: Re: JavaBridge question
  • Index(es):
    • Date
    • Thread