• 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 Bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL Bug?


  • Subject: Re: NSURL Bug?
  • From: Sherm Pendley <email@hidden>
  • Date: Wed, 26 Jun 2002 15:55:27 -0400

On Wednesday, June 26, 2002, at 03:15 PM, Evan DiBiase wrote:

NSURL *myURL = [[NSURL alloc] init];

The '- init' initializer isn't always overridden by NSObject subclasses. Those that do override it list it in their documentation, but it's not in the docs for NSURL, so it's apparently not a safe way to initialize an instance of NSURL.

You can avoid a crash by using one of the documented initializers for the NSURL class:

NSURL *myURL = [[NSURL alloc] initWithString: @""];

sherm--
_______________________________________________
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.

References: 
 >NSURL Bug? (From: Evan DiBiase <email@hidden>)

  • Prev by Date: Re: NSURL Bug?
  • Next by Date: Re: Mutable class problems
  • Previous by thread: Re: NSURL Bug?
  • Next by thread: Re: NSURL Bug?
  • Index(es):
    • Date
    • Thread