discuss-gnustep
[Top][All Lists]
Advanced

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

Re: bogus retain via NSEnumerator


From: David Stes
Subject: Re: bogus retain via NSEnumerator
Date: Wed, 21 Apr 2004 16:30:39 GMT
User-agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.4.18 (i686))

In comp.lang.objective-c John C. Randolph <jcr@nospam.idiom.com> wrote:
> 
> You're missing the purpose of autorelease.

The poster is not missing anything.  Your abusive Apple-employee-language
is completeley misplaced here.

> It's there specifically for
> the case where you *don't* want the object to go away immediately,
> although you are done with it yourself.

Yes, like in enumerating 2,000,000 objects and having 2,000,000 objects
in the autoreleasepool so that memory is released only after 2,000,000
iterations instead of immediately when the object is no longer used.



reply via email to

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