Re: NSDistributedNotificationCenter questions.
Re: NSDistributedNotificationCenter questions.
- Subject: Re: NSDistributedNotificationCenter questions.
- From: Kyle Sluder <email@hidden>
- Date: Fri, 18 Feb 2011 19:58:29 -0800
On Fri, Feb 18, 2011 at 7:36 PM, Mr. Gecko <email@hidden> wrote:
> Yes, that would be it, when I open the UI it releases the pool. Is there a way to prevent this from happening just incase I have other things that are autoreleasing to it?
Nest your own autorelease pool. You can use a runloop observer to make
sure it gets drained regularly.
There's a constant somewhere that says what priority AppKit's
NSAutoreleasePool runloop observer uses, but I can't find it in the
documentation right now. You can insert yourself above that priority
to ensure that your runloop wraps AppKit's.
--Kyle Sluder
_______________________________________________
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