• 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: NSDictionary: enumerating reversely?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSDictionary: enumerating reversely? (From: Youngjin Kim <email@hidden>)

  • Prev by Date: Re: Notifications from an object's dealloc method?
  • Next by Date: Re: NSDictionary: enumerating reversely?
  • Previous by thread: NSDictionary: enumerating reversely?
  • Next by thread: Re: NSDictionary: enumerating reversely?
  • Index(es):
    • Date
    • Thread