Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?
Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?
- Subject: Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?
- From: "Danny Price" <email@hidden>
- Date: Thu, 12 Jun 2008 16:35:49 +0100
> That's what I used to think, too, until someone on this list pointed out to
> me that this snippet is in the header for NSTreeController:
>
> // proxy for the root tree node responds to -childNodes and
> -descendantNodeAtIndexPath:(NSIndexPath *)indexPath
> - (id)arrangedObjects;
>
> So whereas prior to 10.5 this method returned an opaque root node, in
> Leopard you at least are promised that it will respond to -childNodes and
> -descendantNodeAtIndexPath:.
>
So the object is single-level tree where each leaf is the actual item
selected?
What I don't understand is why the same binding returns a different object
in two cases? Why don't get this proxy object when I bind the view directly
to the controller?
_______________________________________________
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