Does NSNotificationCenter have zeroing weak references to observers ?
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