• 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: Apple Events and automatic AutoReleasePool managment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Events and automatic AutoReleasePool managment


  • Subject: Re: Apple Events and automatic AutoReleasePool managment
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 17 Mar 2008 15:29:32 -0700


On 17 Mar '08, at 2:25 PM, Andy Klepack wrote:

In the case of C callbacks wouldn't it be the case that an autorelease pool would exist (that of the main thread) but that it would not be emptied once the callback completes? You wouldn't see any warnings if that were the case.

You're right, that can happen. So I shouldn't have been so sanguine about the pool. It's better to put it in (just two lines of code, and not a performance hit unless your callback is being invoked incredibly often.)


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Apple Events and automatic AutoReleasePool managment (From: Andy Klepack <email@hidden>)
 >Re: Apple Events and automatic AutoReleasePool managment (From: Jens Alfke <email@hidden>)
 >RE: Apple Events and automatic AutoReleasePool managment (From: Andy Klepack <email@hidden>)

  • Prev by Date: NSDate from xsd:dateTime / ISO 8601
  • Next by Date: Re: make a window not draggable in spaces
  • Previous by thread: RE: Apple Events and automatic AutoReleasePool managment
  • Next by thread: Re: Apple Events and automatic AutoReleasePool managment
  • Index(es):
    • Date
    • Thread