• 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
Re: NSURL creation with URLWithString:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSURL creation with URLWithString:
      • From: ettore <email@hidden>
References: 
 >NSURL creation with URLWithString: (From: ettore <email@hidden>)

  • Prev by Date: Re: Weird Problem with Embedding Frameworks
  • Next by Date: troubling article
  • Previous by thread: NSURL creation with URLWithString:
  • Next by thread: Re: NSURL creation with URLWithString:
  • Index(es):
    • Date
    • Thread