What's the point of error "_NSKeyValueObservationInfoCreateByRemoving"
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