Avoiding sorting in NSDictionary

Posted by RVN on Stack Overflow See other posts from Stack Overflow or by RVN
Published on 2010-04-21T09:03:48Z Indexed on 2010/05/22 4:30 UTC
Read the original article Hit count: 295

Filed under:
|

I was using NSDictionary and i observed that the objects in the dictionary are sorted automatically with respect to the keys, so my question is how to avoid this sorting , any flag available to set it off, so i get the object in same order i entered.

i know u may be thinking what difference it makes in dictionary since we retrieve the value with respect to key, but i am first getting allKeys from which i receive Array of keys , this order is what i need it to be in the order of how i entered just as in NSArray.

give your comments if the question is not clear.

Thanks

© Stack Overflow or respective owner

Related posts about sorting

Related posts about nsdictionary