On Nov 26, 2008, at 6:44 PM, Scott Ribe wrote:

Actually, it's probably not, because HFS can't store a file with a ":" in it, but can store a file with a "/" in it. But the UNIX stuff means much of the OS can't handle a file with a "/" in it, so it gets mapped to ":" for the OS. But some Mac APIs can't handle the ":" so that gets mapped back to
"/".

Ideally, code should not even be aware of what the path separator is. Always use the system provided methods to concatenate and split paths (NSURL, CFURL, NSString, FSRefs), then your code couldn't care less if 10.7 should introduce HFS++Extreme with 'e' as path separator.

-Stefan
_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [EMAIL PROTECTED]

Reply via email to