Re: -[NSURL path] returning empty string for relative file URL
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