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

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.

  • Follow-Ups:
    • Re: NSURL creation with URLWithString:
      • From: Andrew Pinski <email@hidden>
References: 
 >Re: openURL Question (From: Matt Wood <email@hidden>)

  • Prev by Date: Re: Compositing views?
  • Next by Date: Re: Weird Problem with Embedding Frameworks
  • Previous by thread: Re: openURL Question
  • Next by thread: Re: NSURL creation with URLWithString:
  • Index(es):
    • Date
    • Thread