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 16:23:44 -0500
Right, and I'd considered that. Maybe my desire for a special case with
my current work has unfairly biased my judgment with respect to this
whole thing. My summarization of this whole thing was that if an
NSArray is homogenous and holds a simple type like an NSString,
NSNumber, etc., then it'd be convenient to have an array conversion
happen transparently as a convenience if nothing else.
All in all, bridging languages is a hard problem and I should be happy
to have a Java bridge at all :) I'm satisfied with all of this
discussion, so I'll call it case closed. Thanks.
On Nov 21, 2004, at 4:08 PM, j o a r wrote:
On 2004-11-21, at 21.51, Matthew wrote:
I'm having a hard time understanding why it's unreasonable to pass an
NSArray of NSString to a Java method and have it accept it 'as is',
as an array of String[]. But again, I've done very little with the
Java bridge and this might seem completely reasonable to those of you
who have used it frequently.
I'm just a clueless newbie when it comes to things like bridging
languages, but as "String[]" is a typed collection (right?), and
"NSArray *" is an untyped collection, would it not be difficult to
allow for a transparent 2-way bridge?
j o a r
_______________________________________________
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