Re: Order of [... directoryContentsAtPath:...]
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