Re: Memory management question
Re: Memory management question
- Subject: Re: Memory management question
- From: Alastair Houghton <email@hidden>
- Date: Thu, 25 Mar 2004 09:18:25 +0000
On 24 Mar 2004, at 23:41, Glen Simmons wrote:
>
>
<snip>
>
> pools to clean them up as and when necessary. Alternatively, you can
>
> immediately release any individual autoreleased object by doing
>
>
>
> [[someObject retain] release];
>
>
>
> (The -retain increments the reference count, removing it from the
>
> autorelease pool, then the -release triggers the deallocation of the
>
> object.)
>
<snip>
>
>
This is the first I've ever heard that retain removes an object from
>
the autorelease pool. How does it know that the object is even *in* an
>
autorelease pool? And which pool? More info please.
It doesn't. The original message was wrong. I thought I'd already
posted to the list correcting myself, but as it happens I missed the
"Reply to All" button.
Kind regards,
Alastair.
--
http://www.alastairs-place.net
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.