NSURL creation with URLWithString:
NSURL creation with URLWithString:
- Subject: NSURL creation with URLWithString:
- From: ettore <email@hidden>
- Date: Tue, 10 Jun 2003 19:05:14 -0700
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.