Re: Handling returning nil from init
Re: Handling returning nil from init
- Subject: Re: Handling returning nil from init
- From: Stefan Schüßler <email@hidden>
- Date: Tue, 12 Jul 2005 17:02:21 +0200
On 12.07.2005, at 16:53, Theodore H. Smith wrote:
Or is there a more graceful way? Or should init actually release
itself if it has to return nil?
From the docs:
"Subclass versions of this method [init] should return the new object
after it has been successfully initialized. If it can’t be
initialized, they should release the object and return nil."
Stefan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden