• 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: Order of [... directoryContentsAtPath:...]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Order of [... directoryContentsAtPath:...]


  • Subject: Re: Order of [... directoryContentsAtPath:...]
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 9 Dec 2009 14:05:44 -0800

On Dec 9, 2009, at 13:38, David Blanton wrote:

> Will array objects 0 thru n be in dictionary order?  This seems to be the case <sometimes> but not always.  Should one sort array in an ascending manner?

No, there's no API contract that specifies what order they'll be returned in. It may in fact be file system dependent. (The files might, for example, always be returned in ascending name order from HFS+, but not from a network file system, which means it's a bug you might not find from your local testing.)


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Order of [... directoryContentsAtPath:...] (From: David Blanton <email@hidden>)

  • Prev by Date: Re: Finding process path from Cocoa?
  • Next by Date: Re: Question about touchesBegan
  • Previous by thread: Order of [... directoryContentsAtPath:...]
  • Next by thread: Leopard for development / testing.
  • Index(es):
    • Date
    • Thread