This returns a non-nil value:
NSURL * url = [NSURL URLWithString:@"sdsds"];

The docs say this should fail. RFC 1758 looks for the string to begin with a scheme, eg http: I would expect a malforrned string, ie, htt: to work, since URLWithString doesn't distinguish between "htt:" and "http:", but if there is no colon, it should return nil. Are the docs wrong, or am I missing something?
Thanks
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to