Bindings Faked Array Item Problem
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