• 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
What's the point of error "_NSKeyValueObservationInfoCreateByRemoving"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What's the point of error "_NSKeyValueObservationInfoCreateByRemoving"


  • Subject: What's the point of error "_NSKeyValueObservationInfoCreateByRemoving"
  • From: Ken Tozier <email@hidden>
  • Date: Thu, 5 Jul 2007 21:38:34 -0400

Hi

I wrote a custom matrix class that among other things allows users to drag selections of cells from one matrix to another. In the process of unregistering cell observers, I'm getting sporadic crashes with the error "_NSKeyValueObservationInfoCreateByRemoving." I Googled this error and read all available threads related to it at CocoaDev but the question remains: Why is this even an error?

Since Apple packs observer info into an opaque type, shouldn't the default behavior of NSObject when calling "removeObserver:forKeyPath:", be to check whether, the receiver's observer list, actually contains the specified observer for the specified key path?

It seems really strange for NSObject to register an observer when you are explicitly telling it to unregister one...

Anyone have any insights on why this error exists and a reasonably straightforward way to work around it?

Thanks in advance

Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Including all source from a folder
  • Next by Date: Re: linking problem
  • Previous by thread: Re: Including all source from a folder
  • Next by thread: enabling @try/@catch
  • Index(es):
    • Date
    • Thread