Re: cocoa java bridge: converting nsarray to java array
Re: cocoa java bridge: converting nsarray to java array
- Subject: Re: cocoa java bridge: converting nsarray to java array
- From: Matthew <email@hidden>
- Date: Sun, 21 Nov 2004 09:04:28 -0500
Marcel,
What exactly is 'manually' in this case?
The NSArray class doesn't have an obvious 'javaArray' message or
anything like that, so I'm not sure what 'manual' means here.
Let's assume that I don't have access to the Java source, so whatever
is to be done *must* happen in Objective C. (i.e. I can't change the
Java method signature to accept a number of strings.)
Thanks for any other insight.
Matthew
On Nov 21, 2004, at 5:57 AM, Marcel Weiher wrote:
On 20 Nov 2004, at 22:13, Matthew wrote:
Hello,
I have an issue using the Cocoa Java Bridge. It is working fine for
calling Java methods that require no arguments or string arguments,
but I'm having an issue passing an NSArray of NSString to a java
method that expects an array of java strings objects.
I don't think this is intended to work as you expect. At least in my
experience, an Objective-C NSArray crosses the bridge as a
com.apple.cocoa.foundation.NSArray, not as a Java array. So you will
need to convert between the two "manually".
Marcel
_______________________________________________
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