Re: NSURL behaviour at odds with documentation
Re: NSURL behaviour at odds with documentation
- Subject: Re: NSURL behaviour at odds with documentation
- From: Sherm Pendley <email@hidden>
- Date: Thu, 26 Feb 2009 03:43:08 -0500
On Wed, Feb 25, 2009 at 7:57 PM, <email@hidden> wrote:
>
> I am using NSURL to create a URL for an application using Webkit. It the
> documentation for NSURL at:
>
>
> http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/Reference/Reference.html
>
> I am specifically calling [NSURL URLWithString].
>
> It states "The NSURL class will fail to create a new NSURL object if the
> path being passed is not well-formed—the path must comply with RFC 2396".
Yes, but I don't see where it states that the provided string must be
absolute. It appears that relative URLs are allowed, although that begs the
question, relative to *what*.
> But when I test this I can create an NSURL with htp/www.ibm.com which has
> a missing colon separator. This looks incorrect.
That's a valid relative URL.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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