On 21 Sep 2009, at 17:27, Jens Alfke wrote:

(In practice, the HFS+ filesystem does return filenames in alphabetical order, although I think it's just sorted by Unicode codepoint,

It's a little more complicated in practice; case-insensitive HFS+ sorts by means of a case-insensitive comparison that's defined in the spec. Case-sensitive HFS+ sorts by UTF-16 code unit.

However, you can't rely on this behaviour, since as you rightly point out, other filesystems may return filenames in any order. And, of course, case-sensitive HFS+ sorts differently from case-insensitive.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to