How to "break" all bindings for the object?
How to "break" all bindings for the object?
- Subject: How to "break" all bindings for the object?
- From: Andrei Tchijov <email@hidden>
- Date: Mon, 5 Dec 2005 15:46:24 -0500
This is in continuation to my earlier post What is the best way to
use NSOutlineView without NSTreeController .
I managed to make it all work with NSObjectController and KVC class
implementing "currentlySelectedObject" and
"setCurrentlySelectedObject:" methods. Now I came to the point when
I need to be able to delete objects from NSOutlineView. This is what
I am getting when I am trying to do it:
XXX is being deallocated while key value observers are still
registered with it
XXX is an object which used to be "currentlySelectedObject". All my
attempts to disassociate this object with bindings failed so far. I
have tried invoking "setCurrentlySelectedObject:" and making sure
that "currentlySelectedObject" returns something else, it did not
work. I have tried to set "content" of the NSObjectController to
"nil" it did not work. I have tried to use "removeObject:" on
NSObjectController passing XXX as an object or KVC object as an
object, it did not work. So far I am out of ideas. Any help will be
highly appreciated.
Thanks,
Andrei
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden