Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need to force Lex-Order?



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.