Re: retain and don`t retain in accessor methods
Re: retain and don`t retain in accessor methods
- Subject: Re: retain and don`t retain in accessor methods
- From: Ariel Feinerman <email@hidden>
- Date: Sun, 15 Nov 2009 09:35:28 +0200
2009/11/15 Kyle Sluder <email@hidden>
> On Sat, Nov 14, 2009 at 2:35 PM, Ariel Feinerman <email@hidden>
> wrote:
> > I need two versions of -initWith ... and -set ... methods of custom timer
> > class (for example, to prevent the circle references);
>
> Do not use accessors in your initializers or -dealloc.
>
Hm, it means to do the same work two times, I think. For example if I change
the mechanism in the setting of instance variables, I must to change one in
difference inits method; can you say a reason?
>
> --Kyle Sluder
>
--
best regards
Ariel
_______________________________________________
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