• 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
Does NSNotificationCenter have zeroing weak references to observers ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does NSNotificationCenter have zeroing weak references to observers ?


  • Subject: Does NSNotificationCenter have zeroing weak references to observers ?
  • From: Erik Buck <email@hidden>
  • Date: Wed, 13 Aug 2008 23:22:45 -0400

Does NSNotificationCenter use zeroing weak references to observers ?

I want to say "When using Cocoa’s automated memory garbage collection, NSNotificationCenter automatically un-registers observers that are no longer in use somewhere else in the application." I'm just not sure it's true. Can anyone save me the time of writing a test application? In my test program, how can I tell the difference between an observer for which the NSNotificationCenter has a strong reference and an observer that is about to be finalized but hasn't been yet ? Is this the classic "halting problem?"

_______________________________________________

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: Does NSNotificationCenter have zeroing weak references to observers ?
      • From: "Michael Ash" <email@hidden>
    • Re: Does NSNotificationCenter have zeroing weak references to observers ?
      • From: "Ken Ferry" <email@hidden>
  • Prev by Date: Re: @property and @synthesize not working
  • Next by Date: Re: Does NSNotificationCenter have zeroing weak references to observers ?
  • Previous by thread: Re: @property and @synthesize not working
  • Next by thread: Re: Does NSNotificationCenter have zeroing weak references to observers ?
  • Index(es):
    • Date
    • Thread