NSURL behaviour at odds with documentation
NSURL behaviour at odds with documentation
- Subject: NSURL behaviour at odds with documentation
- From: email@hidden
- Date: Wed, 25 Feb 2009 19:57:36 -0500
Hello,
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".
According to that RFC an absolute URI should be scheme ":" hierarchical part.
But when I test this I can create an NSURL with htp/www.ibm.com which has a missing colon separator. This looks incorrect.
However surely this class is used very widely by many people so if it was incorrect someone would
have noticed before me.
Any feedback about whether this should be considered incorrect and whether a bug should be raised would be appreciated.
Thanks,
Tim
_______________________________________________
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