discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bogus retain via NSEnumerator


From: John C. Randolph
Subject: Re: bogus retain via NSEnumerator
Date: Thu, 22 Apr 2004 22:31:59 -0700

David Stes wrote:
> 
> In comp.lang.objective-c John C. Randolph <jcr@nospam.idiom.com> wrote:
> >
> >> The Apple memory management is especially inferior for stuff like
> >> enumerators, because you are forced to keep a counter of how many times you
> >> are autoreleasing inside a loop.
> >
> > I've *never* had to do what you describe above.
> 
> But do you test for this condition, in your programs ?

Of course not.  I balance my retains and releases, I use -release when I
want to get rid of something immediately, and I use autorelease when
something else might want to keep the object in question around.  In
other words, I follow the published rules for retain/release.

-jcr


reply via email to

[Prev in Thread] Current Thread [Next in Thread]