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

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


  • Subject: Order of [... directoryContentsAtPath:...]
  • From: David Blanton <email@hidden>
  • Date: Wed, 9 Dec 2009 14:38:08 -0700



NSArray *array = [[NSFileManager defaultManager] directoryContentsAtPath:fullPath]];


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?



Every place I run my code I always see array in dictionary order. However, in one customer case the order is not dictionary.


Just information I am looking for.

db


_______________________________________________

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


  • Follow-Ups:
    • Re: Order of [... directoryContentsAtPath:...]
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Question about touchesBegan
  • Next by Date: Re: Finding process path from Cocoa?
  • Previous by thread: Re: Question about touchesBegan
  • Next by thread: Re: Order of [... directoryContentsAtPath:...]
  • Index(es):
    • Date
    • Thread