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

Re: adding objects to mutable dictionary...


  • Subject: Re: adding objects to mutable dictionary...
  • From: Chris Hanson <email@hidden>
  • Date: Thu, 19 Feb 2004 20:45:58 -0500

On Feb 19, 2004, at 7:26 PM, email@hidden wrote:
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...

Why would you think that? They aren't documented to do so.

If you want the values for the keys of a dictionary in a particular order, ask the dictionary for its collection of keys and then sort that collection using a sort descriptor.

-- Chris

--
Chris Hanson <email@hidden>
bDistributed.com, Inc.
Outsourcing Vendor Evaluation
Custom Mac OS X Development
Cocoa Developer Training
_______________________________________________
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.

References: 
 >adding objects to mutable dictionary... (From: email@hidden)

  • Prev by Date: Re: styled text to html
  • Next by Date: [SOLVED]: NSFontManager's delegate.
  • Previous by thread: Re: adding objects to mutable dictionary...
  • Next by thread: Re: styled text to html
  • Index(es):
    • Date
    • Thread