• 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
Re: C: treated as a path component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Networking
  • Next by Date: Re: Networking
  • Previous by thread: Fwd: C: treated as a path component
  • Next by thread: KVC and "@" as key
  • Index(es):
    • Date
    • Thread