Re: addObserver:forKeyPath:options:context: memory management in GC
Re: addObserver:forKeyPath:options:context: memory management in GC
- Subject: Re: addObserver:forKeyPath:options:context: memory management in GC
- From: "Lukhnos D. Liu" <email@hidden>
- Date: Thu, 19 Nov 2009 04:28:58 +0800
On Nov 18, 2009, at 2:14 AM, Sean McBride wrote:
> The docs for addObserver:forKeyPath:options:context: say "Neither the
> receiver, nor anObserver, are retained.". They don't comment on the
> garbage collected case specifically. Does any know for sure?
> Does calling this method add a strong reference between the receiver and
> 'anObserver'? (I'm assuming not.)
The Foundation Release Notes in Snow Leopard mentions "Automatic Removal of
Finalized Key-Value Observers When Running Garbage-Collected" (new in SL),
so there is some differences between how that's handled in 10.5 and in 10.6...
Lukhnos
_______________________________________________
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