FROM : Matthew
DATE : Sun Nov 21 15:04:28 2004
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
>
DATE : Sun Nov 21 15:04:28 2004
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
>
| Related mails | Author | Date |
|---|---|---|
| Matthew | Nov 20, 23:13 | |
| Marcel Weiher | Nov 21, 11:57 | |
| Matthew | Nov 21, 15:04 | |
| Marcel Weiher | Nov 21, 19:09 | |
| Matthew | Nov 21, 21:05 | |
| j o a r | Nov 21, 21:32 | |
| Matthew | Nov 21, 21:51 | |
| j o a r | Nov 21, 22:08 | |
| Matthew | Nov 21, 22:23 | |
| M. Uli Kusterer | Nov 23, 22:44 |






Cocoa mail archive

