• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa java bridge: converting nsarray to java array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >cocoa java bridge: converting nsarray to java array (From: Matthew <email@hidden>)
 >Re: cocoa java bridge: converting nsarray to java array (From: Marcel Weiher <email@hidden>)
 >Re: cocoa java bridge: converting nsarray to java array (From: Matthew <email@hidden>)
 >Re: cocoa java bridge: converting nsarray to java array (From: Marcel Weiher <email@hidden>)
 >Re: cocoa java bridge: converting nsarray to java array (From: Matthew <email@hidden>)
 >Re: cocoa java bridge: converting nsarray to java array (From: j o a r <email@hidden>)
 >Re: cocoa java bridge: converting nsarray to java array (From: Matthew <email@hidden>)
 >Re: cocoa java bridge: converting nsarray to java array (From: j o a r <email@hidden>)

  • Prev by Date: Re: cocoa java bridge: converting nsarray to java array
  • Next by Date: Re: Wake up the machine with a timer
  • Previous by thread: Re: cocoa java bridge: converting nsarray to java array
  • Next by thread: Re: cocoa java bridge: converting nsarray to java array
  • Index(es):
    • Date
    • Thread