Re: Observing with GC
Re: Observing with GC
- Subject: Re: Observing with GC
- From: Rob Keniger <email@hidden>
- Date: Mon, 25 Feb 2008 15:45:43 +1000
On 25/02/2008, at 12:30 PM, Quincey Morris wrote:
Do we know if KVO observing keeps weak references to observed
objects (and observers too, for that matter, but I'm mostly
interested in observed objects atm) in a GC-only application?
No, you need to make sure you call -removeObserver:forKeyPath: at some
point. For custom views I usually do this in -removeFromSuperView but
if necessary you could put it in a -finalize block.
--
Rob Keniger
_______________________________________________
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