• 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 behaviour at odds with documentation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSURL behaviour at odds with documentation (From: email@hidden)

  • Prev by Date: What control/view should i use for a very specific requirment
  • Next by Date: Re: What control/view should i use for a very specific requirment
  • Previous by thread: NSURL behaviour at odds with documentation
  • Next by thread: re: Observing Managed Object Changes. Was: Strange ... behavior
  • Index(es):
    • Date
    • Thread