• 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 deal with : "...XXX is being deallocated while key value observers are still registered with it..."
[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..."


  • Subject: How to deal with : "...XXX is being deallocated while key value observers are still registered with it..."
  • From: Andrei Tchijov <email@hidden>
  • Date: Mon, 5 Dec 2005 21:09:57 -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: "Did you forget to nest alloc and init?"
  • Next by Date: Re: Are NSViews autoreleased or released?
  • Previous by thread: Re: Some Newbie Questions
  • Next by thread: scrolling with MightyMouse
  • Index(es):
    • Date
    • Thread