Outline view bound to an NSTreeController's content shows all children at the top level
Outline view bound to an NSTreeController's content shows all children at the top level
- Subject: Outline view bound to an NSTreeController's content shows all children at the top level
- From: Daniel DeCovnick <email@hidden>
- Date: Thu, 23 Jul 2009 03:32:47 -0700
Hi all,
Subject is pretty self-explanatory. The problem: I don't want that
behavior.
A little longer explanation: The data is a CoreData entity with a self-
referencing children-parent many-to-one relationship, which can go
arbitrarily deep. The problem is, when call addChild: or insertChild:
instead of only appearing one level down, the new instance appears at
the top level as well. Likewise, if I make a child from a node on THAT
level, the child appears 3 times, once where it's supposed to be, once
in the top level, and once one level below its parent's instance at
the top level.
I get the feeling there's a simple fix for this, but I can't figure
out what it is. If it's relevant, I'm not calling add/insertChild: (is
there a difference, BTW?) in code, but rather hooking up a button to
the treecontroller directly in IB.
Thanks,
Dan
Daniel DeCovnick
danhd123 at mac dot com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden