On 5/3/09 5:38 PM, Kyle Sluder said:

>Initializers must call -[self release] in case of an error.  This
>means that in response to an error that occurs as part of
>initialization, you must not release that object.

Actually, they should call [super dealloc] not [self release], see:

<http://lists.apple.com/archives/Objc-language/2008/Sep/msg00133.html>

--
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to