• 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: Kaj Hejer <email@hidden>
  • Date: Tue, 16 Sep 2003 23:32:59 +0200

At 23:04 +0200 16-09-2003, jacques couzteau wrote:
I tried to find a way to do this with NSMutableArray and Vector and was
quite surprised that these structures don't store integers. Then i
found ou that i can define an Array in Java like this:

int [] myIndices = new int [] { 12,11,13,0 };

but an array like this doesn't provide the enumerator functionality.
What is the easiest and appropriate way to do this?


Hi!

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

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


-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.

  • Follow-Ups:
    • Re: Which datatype? NSMutableArray, Vector, Array ???
      • From: Jonathan Rochkind <email@hidden>
References: 
 >Which datatype? NSMutableArray, Vector, Array ??? (From: jacques couzteau <email@hidden>)

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