Re: NSURL creation with URLWithString:
Re: NSURL creation with URLWithString:
- Subject: Re: NSURL creation with URLWithString:
- From: Andrew Pinski <email@hidden>
- Date: Tue, 10 Jun 2003 22:18:37 -0400
How is "htt://localhost/" a malformed URL/URI?
"htt" is the scheme. "htt" might be a new protocol that someone has not
thought up yet
I might just implement "htt" as a new scheme, then when everyone types
"http" wrong
I get some money for using "htt".
Thanks,
Andrew Pinski
On Tuesday, Jun 10, 2003, at 22:05 US/Eastern, ettore wrote:
I created an NSURL with URLWithString: of class NSURL. This method is
supposed to return nil if the string passed to it is malformed (as
per RFC 2396). ``URLWithString: parses URLString according to RFCs
1738 and 1808.'' (cit.)
But
[NSURL URLWithString:@"htt://localhost/"]
does not return nil, but a regular NSURL object (with a malformed URL
of course)
Is the documentation for method URLWithString: of class NSURL wrong?
Thanks for the help.
Ettore
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.