• 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: Need to force Lex-Order?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need to force Lex-Order?


  • Subject: Re: Need to force Lex-Order?
  • From: Michael Hanna <email@hidden>
  • Date: Thu, 31 Jul 2003 23:19:46 -0400

So can I store these arrays in a property list(s)? Or do I have to hard-code them into the code. I'm not sure how to open property lists that do not consist of Dictionaries.

Michael

On Thursday, July 31, 2003, at 10:59 PM, Pete Yandell wrote:

Michael,

On Friday, 1 August 2003, at 12:39 PM, Michael Hanna wrote:

Lex-order is something that I need to depend on.

Then you shouldn't be using a dictionary. Dictionaries, by definition, are unordered so the keys and values can come out of them in any > order.

The easy alternative is to use two arrays: one for keys and one for values. Or perhaps an array of key-value pairs.

Pete Yandell
http://pete.yandell.com/
_______________________________________________
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.

  • Prev by Date: Making my application scriptable
  • Next by Date: Re: Making my application scriptable
  • Previous by thread: Re: Need to force Lex-Order?
  • Next by thread: Making my application scriptable
  • Index(es):
    • Date
    • Thread