• 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
adding objects to mutable dictionary...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding objects to mutable dictionary...


  • Subject: adding objects to mutable dictionary...
  • From: email@hidden
  • Date: Thu, 19 Feb 2004 16:26:23 -0800

When i cycle through an array and add the objects to a mutable dictionary the order becoming all jumbled? i would think that they would stay in the same order but apparently not...

here is the order of the first 6 objects in the array:

First Name
Last Name
Work Phone
Home Phone
Main Phone
Mobile Phone

then after i cycle through them and add them to a dictionary these are the first 6:

MSN
ICQ
Father
Home Phone
Custom Chat Services
Home Email

this set i retrieved by just enumerating through the dictionary after i added them?

my question is by using setObject wouldn't just add 1after another in order? but it doesn't seem to be is there some logic to the way it adds them or not? ie alphabetically or other wise or should i retrieve them differently?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: adding objects to mutable dictionary...
      • From: Chris Hanson <email@hidden>
    • Re: adding objects to mutable dictionary...
      • From: Jens Bauer <email@hidden>
    • Re: adding objects to mutable dictionary...
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: Disclosure Triangle Icon
  • Next by Date: Re: Disclosure Triangle Icon
  • Previous by thread: Re: Loading nibs in plugins
  • Next by thread: Re: adding objects to mutable dictionary...
  • Index(es):
    • Date
    • Thread