Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to deal with : "...XXX is being deallocated while key value observers are still registered with it..."



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.