Re: Observing with GC
Re: Observing with GC
- Subject: Re: Observing with GC
- From: Antonio Nunes <email@hidden>
- Date: Wed, 27 Feb 2008 07:59:55 +0100
On Feb 26, 2008, at 11:42 AM, Chris Suter wrote:
On a side note, it doesn't look like you have to call
removeObserver: for notifications registered with
NSNotificationCenter.
The garbage collection docs state:
"For example, a notification center should not form strong
relationships to registered observers, otherwise it artificially
prolongs the lifetime of those objects indefinitely."
I guess that corroborates it, but would anyone care to confirm Chris's
assertion with some authority?
-António
-----------------------------------------
Forgiveness is not an occasional act;
it is a permanent attitude.
--Martin Luther King, Jr
-----------------------------------------
_______________________________________________
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