• 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: NSDistributedNotificationCenter questions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDistributedNotificationCenter questions.
      • From: "Mr. Gecko" <email@hidden>
References: 
 >NSDistributedNotificationCenter questions. (From: "Mr. Gecko" <email@hidden>)
 >Re: NSDistributedNotificationCenter questions. (From: Ken Thomases <email@hidden>)
 >Re: NSDistributedNotificationCenter questions. (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: NSURLDownload mysteriously pausing
  • Next by Date: Re: Trouble with design pattern
  • Previous by thread: Re: NSDistributedNotificationCenter questions.
  • Next by thread: Re: NSDistributedNotificationCenter questions.
  • Index(es):
    • Date
    • Thread