Re: In dealloc(): ref @property, Can I use "<property object> = nil; " vs "[<property object> release]; " ?
Re: In dealloc(): ref @property, Can I use "<property object> = nil; " vs "[<property object> release]; " ?
- Subject: Re: In dealloc(): ref @property, Can I use "<property object> = nil; " vs "[<property object> release]; " ?
- From: "Sean McBride" <email@hidden>
- Date: Wed, 8 Oct 2008 13:16:12 -0400
- Organization: Rogue Research
On 10/8/08 9:55 AM, mmalc crawford said:
>No, that is not Apple-sanctioned best-practice.
mmalc,
That was a nice summary, thanks.
So does the same advice apply for init methods? That is: set ivars
directly (unless there is no ivar, in which case you have no choice but
to call the setter).
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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