Missing children in NSTreeController/NSOutlineView
Missing children in NSTreeController/NSOutlineView
- Subject: Missing children in NSTreeController/NSOutlineView
- From: Mikkel Eide Eriksen <email@hidden>
- Date: Mon, 14 May 2012 09:40:43 +0200
Hi all,
I have as follows in Interface builder:
- A superclass with a @property NSOrderedSet *properties containing zero or more instances of objects, as well as some normal string properties. All the objects inherit from the superclass.
- An NSTreeController whose content object is bound to the selection of an NSArrayController. The NSTreeController is configured with the children key path "properties"
- An NSOutlineView whose content is bound to my tree controller's arrangedObjects. The outline view has two columns, each bound to a string property on arrangedObjects.
When I run my app, the outline view populates and changes its contents when I change the selection of the array controller. The columns show the string properties as expected.
However, no children are displayed and there is no disclosure triangle. I have verified with breakpoints that the tree controller does access my "properties" and that a set is returned with contents of the right objects. Likewise, changing the children key path to a non-existing property will yield a KVO-compliance exception.
I've read through the docs and spent some time googling, but nothing I've found has suggested a reason for the children to be missing.
What am I doing wrong?
Regards,
Mikkel
_______________________________________________
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