• 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
Bindings Faked Array Item Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings Faked Array Item Problem


  • Subject: Bindings Faked Array Item Problem
  • From: Thilo Ettelt <email@hidden>
  • Date: Fri, 17 Mar 2006 14:38:13 +0100

Hello,

I'm using bindings (NSTreeController) for feeding an Outline view with data, I have used the appropriate accessor methods and they are called ( -(MyObject *)objectInMyArrayAtIndex:.... etc). But after an object is inserted and then after -objectInMyArrayAt... is called I get an error:
"unexpected state: trying to insert object <NSKVONotifying_MyObject: 0x3b8650> failed. Destination node == nil or destination node did not retain the object"


What has happened? I can't resolve the error. Plz help.

Also I have to add what I'm trying to do: i want to display another item as a child which is not in the child array (it's a subclass of MyObject). this works on the first click when adding a child, but when i remove the actual child and the ghost item is being removed too and add a child again then the order is flipped: first comes the actual child and then the ghost item, even though i'm returning the ghost item for index == 0 in -objectInMyArrayAtIndex... i can't explain this behavior.


Thx in advance, Thilo _______________________________________________ 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
  • Follow-Ups:
    • Re: Bindings Faked Array Item Problem
      • From: Felix Franz <email@hidden>
  • Prev by Date: Re: QTMovieView and NSView
  • Next by Date: QTMovieView behavior
  • Previous by thread: Re: Launch Services (or whomever) does not let sleeping disks lie...
  • Next by thread: Re: Bindings Faked Array Item Problem
  • Index(es):
    • Date
    • Thread