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

Which datatype? NSMutableArray, Vector, Array ???


  • Subject: Which datatype? NSMutableArray, Vector, Array ???
  • From: jacques couzteau <email@hidden>
  • Date: Tue, 16 Sep 2003 23:04:06 +0200

hi,

what i had in mind, was to define a mutable list and initialise it in
one statement on a single line.

In perl i would simply say @myList =(12,11,13,0);
Order is important as well that the list has to be mutable. I also want
  to comfortably iterate through it.

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?

thanks for your help.

__________
OSX 10.2.6 /
mysql 4.0.14-standard
WO 5.2.1
mysql-connector-java-3.0.8-stable-bin.jar
_______________________________________________
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: Kaj Hejer <email@hidden>
  • Prev by Date: _eoForGID exception (was: java 1.4 solaris memory issue)
  • Next by Date: Re: String To BigDecimal - Is it Possible?
  • Previous by thread: Re: _eoForGID exception (was: java 1.4 solaris memory issue)
  • Next by thread: Re: Which datatype? NSMutableArray, Vector, Array ???
  • Index(es):
    • Date
    • Thread