Re: Missing children in NSTreeController/NSOutlineView
Re: Missing children in NSTreeController/NSOutlineView
- Subject: Re: Missing children in NSTreeController/NSOutlineView
- From: Kyle Sluder <email@hidden>
- Date: Mon, 14 May 2012 08:40:51 -0700
On May 14, 2012, at 1:06 AM, Quincey Morris <email@hidden> wrote:
> 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.
Hmm? As long as you return a set containing "properties" from +keyPathsAffectingIsLeaf, and your class is KVO compliant for "properties", this should also be KVO compliant.
--Kyle Sluder
_______________________________________________
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