Re: Missing children in NSTreeController/NSOutlineView (SOLVED)
Re: Missing children in NSTreeController/NSOutlineView (SOLVED)
- Subject: Re: Missing children in NSTreeController/NSOutlineView (SOLVED)
- From: Mikkel Eide Eriksen <email@hidden>
- Date: Mon, 14 May 2012 17:56:01 +0200
There it was! My "properties" property is an NSOrderedSet. After some more time in the debugger, I found out that the tree controller gets the object at children key path, and checks whether it's an NSSet or an NSArray. NSOrderedSet is neither, it inherits directly from NSObject and that appears to be the problem.
As a quick hack to test this, I made a "propertiesSet" property that just returns [[self properties] set] and the children now show up as expected.
I guess I'll have to refactor some things.
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