• 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: "Mr. Gecko" <email@hidden>
  • Date: Fri, 18 Feb 2011 17:42:40 -0600

Here is some proof that it is still in memory, I waited about 5 minutes and it didn't dealloc automatically like you said it will...

PNG image

When I wrap a NSAutoreleasePool around the notification method, it releases as expected. I cannot have my application doing this as it is a background application and I'm sure people wouldn't want to have it taking 1GB after leaving it running for 2 hours. Now that you know that I know what I'm talking about. How about an answer? Is it because the application that sends the distributed notification does not have a autorelease pool made around the posting or is it because it's a distributed notification. I'm positive that no other type of notification has this problem. I would think it's something like NSConnection where if the application calling a method is calling it without a autorelease pool and the method it's calling creates a object and just adds it to the autorelease pool when there isn't one, it'll just leak without anyway to know of it without looking at objects created and not released in instruments.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >NSDistributedNotificationCenter questions. (From: "Mr. Gecko" <email@hidden>)
 >Re: NSDistributedNotificationCenter questions. (From: Fritz Anderson <email@hidden>)

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