Re: NSURL Bug?
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>) |