• 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
URLWithString fails to fails with bad string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URLWithString fails to fails with bad string


  • Subject: URLWithString fails to fails with bad string
  • From: email@hidden
  • Date: Wed, 25 Nov 2009 06:14:28 +0000

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 (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


  • Follow-Ups:
    • Re: URLWithString fails to fails with bad string
      • From: Kyle Sluder <email@hidden>
    • Re: URLWithString fails to fails with bad string
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: int* array going astray
  • Next by Date: Re: URLWithString fails to fails with bad string
  • Previous by thread: Re: different width in fastenumeration
  • Next by thread: Re: URLWithString fails to fails with bad string
  • Index(es):
    • Date
    • Thread