On Tue, May 5, 2009 at 3:15 PM, Jan-Willem Buurlage
<[email protected]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to