• 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: -[NSURL path] returning empty string for relative file URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSURL path] returning empty string for relative file URL


  • Subject: Re: -[NSURL path] returning empty string for relative file URL
  • From: Niko Matsakis <email@hidden>
  • Date: Fri, 11 Nov 2005 14:17:52 +0100

In "file://foo.bar", the host part is "foo.bar" and the path part is
empty. You probably mean "file:///foo.bar", in which the host part is
empty and the path part is "/foo.bar".

Well, what I want is a relative path. "/foo.bar" would be an absolute path. I'm no expert on URLs, so I'm not sure what that should look like.

A relative URL has no scheme, so it would look like: "foo.bar". This would work relative to the original resource, whether it was a file: URL or an http: URL, etc.



Niko _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: -[NSURL path] returning empty string for relative file URL
      • From: Glen Simmons <email@hidden>
References: 
 >-[NSURL path] returning empty string for relative file URL (From: Glen Simmons <email@hidden>)
 >Re: -[NSURL path] returning empty string for relative file URL (From: Rob Mayoff <email@hidden>)
 >Re: -[NSURL path] returning empty string for relative file URL (From: Glen Simmons <email@hidden>)

  • Prev by Date: Re: Closing alert sheet
  • Next by Date: Re: Closing alert sheet
  • Previous by thread: Re: -[NSURL path] returning empty string for relative file URL
  • Next by thread: Re: -[NSURL path] returning empty string for relative file URL
  • Index(es):
    • Date
    • Thread