• 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: Ken Thomases <email@hidden>
  • Date: Fri, 18 Feb 2011 20:20:18 -0600

On Feb 18, 2011, at 3:00 PM, Mr. Gecko wrote:

> I noticed that memory is not autoreleased when I receive a distributed notification, the only way to fix this is to wrap it in a autorelease pool, but this shouldn't be right? I would think that when you register for a notification it'll be on the run loop which has a autorelease pool and therefore shouldn't leak, instruments doesn't see these allocations as a leak, but you can see they are still alive.

Is your application getting any real GUI-style events, or is it only receiving the distributed notifications?  It's very possible that the main event loop's autorelease pool is only drained after processing a real event and not necessarily for every thing that's called out for a run loop source.

Regards,
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

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

  • Prev by Date: Re: Multithread, Window, Event, Runloop, ... => Headache
  • Next by Date: Re: NSDistributedNotificationCenter questions.
  • Previous by thread: Re: NSDistributedNotificationCenter questions.
  • Next by thread: Re: NSDistributedNotificationCenter questions.
  • Index(es):
    • Date
    • Thread