On Fri, Feb 18, 2011 at 7:36 PM, Mr. Gecko <grmrge...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to