Re: Failing in -init
Re: Failing in -init
- Subject: Re: Failing in -init
- From: Roland King <email@hidden>
- Date: Wed, 27 Jul 2011 14:42:48 +0800
Yes and yes. Read the paragraph titled "handling initialization failure" in "the objective-c programming language" which covers this.
On Jul 27, 2011, at 14:28, Rick Mann <email@hidden> wrote:
> If my object's initialization fails, can I return nil from it? If that happens, do I need to call [self release]?
>
> --
> Rick
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden