• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cannot remove an observer ... because it is not registered as an observer.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Cannot remove an observer ... because it is not registered as an observer. (From: Steve Steinitz <email@hidden>)
 >Re: Cannot remove an observer ... because it is not registered as an observer. (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Accessing attributes of XML
  • Next by Date: Multiple controls in a table cell
  • Previous by thread: Re: Cannot remove an observer ... because it is not registered as an observer.
  • Next by thread: NSXML assistance please
  • Index(es):
    • Date
    • Thread