Skip navigation.
 
mlRe: cocoa java bridge: converting nsarray to java array
FROM : Matthew
DATE : Sun Nov 21 22:23:44 2004

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
>

Related mailsAuthorDate
mlcocoa java bridge: converting nsarray to java array Matthew Nov 20, 23:13
mlRe: cocoa java bridge: converting nsarray to java array Marcel Weiher Nov 21, 11:57
mlRe: cocoa java bridge: converting nsarray to java array Matthew Nov 21, 15:04
mlRe: cocoa java bridge: converting nsarray to java array Marcel Weiher Nov 21, 19:09
mlRe: cocoa java bridge: converting nsarray to java array Matthew Nov 21, 21:05
mlRe: cocoa java bridge: converting nsarray to java array j o a r Nov 21, 21:32
mlRe: cocoa java bridge: converting nsarray to java array Matthew Nov 21, 21:51
mlRe: cocoa java bridge: converting nsarray to java array j o a r Nov 21, 22:08
mlRe: cocoa java bridge: converting nsarray to java array Matthew Nov 21, 22:23
mlRe: cocoa java bridge: converting nsarray to java array M. Uli Kusterer Nov 23, 22:44