Re: C: treated as a path component
Re: C: treated as a path component
- Subject: Re: C: treated as a path component
- From: Greg Guerin <email@hidden>
- Date: Wed, 15 Apr 2009 12:40:02 -0700
Charles Srstka wrote:
I tried this, and it doesn't seem to have anything to do with HFS+
paths, as Cocoa abstracts colons away into slashes there anyway.
What's more, it only does this if you have only one letter before
the colon, as in @"C:omponent". If you use @"CC:omponent" instead,
it doesn't split it. If anything, it seems to look like it's
thinking the path is an MS-DOS path which starts with a drive letter.
If that's the case, then try prefixing the relative path "C:omponent"
with "./". This should not change the semantics of a real relative
pathname, but it should prevent the "C:" from being interpreted as a
drive letter.
-- GG
_______________________________________________
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