• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa-dev Digest, Vol 6, Issue 680
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Cocoa-dev Digest, Vol 6, Issue 680 (From: Jan-Willem Buurlage <email@hidden>)

  • Prev by Date: Re: How to change the case of letters
  • Next by Date: Re: How remove a clip path? SOLVED
  • Previous by thread: Re: Cocoa-dev Digest, Vol 6, Issue 680
  • Next by thread: NSWorkspace -setIcon:forFile creates garbled icon under 10.4
  • Index(es):
    • Date
    • Thread