• 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: Which datatype? NSMutableArray, Vector, Array ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which datatype? NSMutableArray, Vector, Array ???


  • Subject: Re: Which datatype? NSMutableArray, Vector, Array ???
  • From: Jonathan Rochkind <email@hidden>
  • Date: Tue, 16 Sep 2003 17:02:30 -0500

At 11:32 PM 9/16/2003 +0200, Kaj Hejer wrote:

You might just pass that array you make to the constructor of NSMutableArray like

NSMutableArray myarray = new NSMutableArray ( new int [] { 12,11,13,0 } );

Except you can't put 'int's, or any other primitive types, in an NSArray. You would need to put Integer objects there instead. Which would lead to the even more bizarre line:


NSMutableArray myarray = new NSMutableArray( new Integer[] { new Integer(12), new Integer(11), new Integer(13), new Integer(0) } );

I don't know of any better way to do this myself.



-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Which datatype? NSMutableArray, Vector, Array ??? (From: jacques couzteau <email@hidden>)
 >Re: Which datatype? NSMutableArray, Vector, Array ??? (From: Kaj Hejer <email@hidden>)

  • Prev by Date: Re: Is EOModeler needed on a deployment machine?
  • Next by Date: Re: Is EOModeler needed on a deployment machine?
  • Previous by thread: Re: Which datatype? NSMutableArray, Vector, Array ???
  • Next by thread: Re: Which datatype? NSMutableArray, Vector, Array ???
  • Index(es):
    • Date
    • Thread