Re: Cocoa-dev Digest, Vol 6, Issue 680
Re: Cocoa-dev Digest, Vol 6, Issue 680
- Subject: Re: Cocoa-dev Digest, Vol 6, Issue 680
- From: Michael Ash <email@hidden>
- Date: Tue, 5 May 2009 18:29:22 -0400
On Tue, May 5, 2009 at 3:15 PM, Jan-Willem Buurlage
<email@hidden> wrote:
> Thanks for your reply, there is still so much I need to learn.
> I thought adding an autorelease pool wasn't necessary when garbage
> collection was turned on?
I wasn't aware that you were using garbage collection.
Autorelease pools can still be useful under GC. If you destroy them
using -drain instead of -release, that will signal the collector that
this is a good time to perform a collection pass. However there are
more direct ways to do this if you don't need to write code that also
works without GC, using the NSGarbageCollector class.
Mike
_______________________________________________
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