Re: Cannot remove an observer ... because it is not registered as an observer.
Re: Cannot remove an observer ... because it is not registered as an observer.
- Subject: Re: Cannot remove an observer ... because it is not registered as an observer.
- From: Jack Repenning <email@hidden>
- Date: Mon, 5 May 2008 16:09:05 -0700
On May 4, 2008, at 10:07 PM, Jens Alfke wrote:
The usual cause of this is that you have a property that isn't KVO-
compliant. Something accesses your 'foo' property and registers as
an observer of that property, and also as an observer of the object
that's the property's current value; you change the value of 'foo'
without letting anyone know; the observer then later decides to stop
observing, gets your 'foo' property, and removes itself as an
observer of that object. But it's no longer the same object that it
registered as an observer for...
I also recently had a case of this message caused because my property,
which was otherwise perfectly KVO-compliant, *also* had "willChange /
didChange" stuff, so it was being excessively change-notified.
Removing those (because the automatic notifications were sufficient)
made it all happy.>
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"
_______________________________________________
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