• 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
How to "break" all bindings for the object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: NSToolbar missing notification?
  • Next by Date: Re: resize image with cocoa
  • Previous by thread: Re: Unified instead of Brushed Metal NSDrawer
  • Next by thread: Are NSViews autoreleased or released?
  • Index(es):
    • Date
    • Thread