Re: Missing children in NSTreeController/NSOutlineView
Re: Missing children in NSTreeController/NSOutlineView
- Subject: Re: Missing children in NSTreeController/NSOutlineView
- From: Mikkel Eide Eriksen <email@hidden>
- Date: Mon, 14 May 2012 10:13:08 +0200
Thanks,
I don't currently have leaf/count configured. They are empty in IB - my impression was that they were optional and for performace?
Mikkel
On 14/05/2012, at 10.06, Quincey Morris <email@hidden> wrote:
> On May 14, 2012, at 00:40 , Mikkel Eide Eriksen wrote:
>
>> - An NSTreeController whose content object is bound to the selection of an NSArrayController. The NSTreeController is configured with the children key path "properties"
>
> 1. Check that you have the correct configuration for the count key and/or the leaf key.
>
> 2. Check the KVO compliance of whichever of these keys you use. For example, a leaf key like this:
>
> - (BOOL) isLeaf {
> return self.properties.count > 0;
> }
>
> *isn't* KVO compliant.
>
>
_______________________________________________
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