Re: NSDictionary: enumerating reversely?
Re: NSDictionary: enumerating reversely?
- Subject: Re: NSDictionary: enumerating reversely?
- From: Art Isbell <email@hidden>
- Date: Fri, 6 Jul 2001 17:03:32 -1000
On Friday, July 6, 2001, at 03:04 PM, Youngjin Kim wrote:
How can I enumerate objects in NSDictionary reversely?
NSDictionary isn't an ordered collection, so the concept of
enumerating in reverse doesn't make any sense.
However, if the order returned by keyEnumerator or
valueEnumerator isn't to your liking, you could send the array
returned by [dictionary allKeys] or [dictionary allValues] a
reverseObjectEnumerator or objectEnumerator message.
Art Isbell
Apple iServices Technical Support
http://www.apple.com/iservices/webobjectssupport/
+1-808-591-0836