Re: Subclass observers on dealloc
Re: Subclass observers on dealloc
- Subject: Re: Subclass observers on dealloc
- From: Uli Kusterer <email@hidden>
- Date: Thu, 1 Feb 2007 00:08:11 +0100
Am 31.01.2007 um 04:30 schrieb Ken Tozier:
I have some sub classes of a custom NSView class that perform
various actions in response to changes in the view. Since the sub
classes are basically watching other parts of themselves, I'm
wondering whether it's necessary to call
[self removeObserver: self
forKeyPath: inProperty];
Doesn't the KVO stuff retain whatever it observes? Or was that
bindings? If it does, an object observing itself would cause a retain
circle, which prevents your object from ever being released (i.e. it
is leaked).
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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