JavaBridge question
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.