• 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: Ken Thomases <email@hidden>
  • Date: Mon, 17 Mar 2008 19:58:16 -0500

On Mar 17, 2008, at 4:25 PM, Andy Klepack wrote:

I'm seeing this problem in some AE handlers installed via AEInstallEventHandler. There are no warnings about a pool not existing, but the app memory usage grows and grows. Wrapping the handler in a pool creation and release appears to solve this.

Your question is valid, and you appear to have found the answer for yourself. Just one FYI:


Have you considered using -[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:] instead of AEInstallEventHandler? I suspect Cocoa will take care of the autorelease pool for you in that case.

Cheers,
Ken

_______________________________________________

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: Re: Prevent application activation after dragging items to the Dock icon?
  • Next by Date: Re: NSDate from xsd:dateTime / ISO 8601
  • Previous by thread: Re: Apple Events and automatic AutoReleasePool managment
  • Next by thread: CoreData: Incompatible model configuration problem...
  • Index(es):
    • Date
    • Thread