Re: retain and don`t retain in accessor methods

2009-11-16 Thread Kyle Sluder
On Mon, Nov 16, 2009 at 5:18 AM, Austin Ziegler wrote: > Is that true anymore, though? I've been looking at a lot of sample > code lately, and it's very common practice to use "self.foo = ..." in > initializers, even when they're declared nonatomic. I know you said > you don't subscribe to it, but

Re: retain and don`t retain in accessor methods

2009-11-16 Thread Austin Ziegler
On Sun, Nov 15, 2009 at 10:35 AM, Clark Cox wrote: > On Sat, Nov 14, 2009 at 11:35 PM, Ariel Feinerman > wrote: >> 2009/11/15 Kyle Sluder >>> On Sat, Nov 14, 2009 at 2:35 PM, Ariel Feinerman >>> wrote: >>> > I need two versions of -initWith ... and -set ... methods of custom timer >>> > class

Re: retain and don`t retain in accessor methods

2009-11-15 Thread Clark Cox
On Sat, Nov 14, 2009 at 11:35 PM, Ariel Feinerman wrote: > 2009/11/15 Kyle Sluder > >> On Sat, Nov 14, 2009 at 2:35 PM, Ariel Feinerman >> wrote: >> > I need two versions of -initWith ... and -set ... methods of custom timer >> > class (for example, to prevent the circle references); >> >> Do no

Re: retain and don`t retain in accessor methods

2009-11-14 Thread Ariel Feinerman
2009/11/15 Kyle Sluder > On Sat, Nov 14, 2009 at 2:35 PM, Ariel Feinerman > 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 t

Re: retain and don`t retain in accessor methods

2009-11-14 Thread Kyle Sluder
On Sat, Nov 14, 2009 at 2:35 PM, Ariel Feinerman 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. --Kyle Sluder __

Fwd: retain and don`t retain in accessor methods

2009-11-14 Thread Ariel Feinerman
Hi, I need two versions of -initWith ... and -set ... methods of custom timer class (for example, to prevent the circle references); Is these correct implementation? - (id) initWithTarget: (id) theTarget { return [self initWithTarget: theTarget retain: YES]; // ? } - (id) initWithTarget: (id)