Re: How to remove all objects from a NSTreeController ?
Re: How to remove all objects from a NSTreeController ?
- Subject: Re: How to remove all objects from a NSTreeController ?
- From: Sébastien Stormacq <email@hidden>
- Date: Fri, 27 Nov 2009 08:33:04 +0100
Hello,
As suggested in one of the replies, I switched from binding to manually handle the Table data with the DataSource. As my table is very simple, I can live with that.
I found this solution to be more performant than the binding and it works :-)
Thanks for your help
--Seb
On 27 Nov 2009, at 07:33, Rob Keniger wrote:
>
> On 27/11/2009, at 4:26 PM, Sébastien Stormacq wrote:
>
>>> You don't need to do this. Just create an NSArrayController for your NSTableView that is bound to the "selection" key of the NSTreeController. The NSArrayController will then populate the table view for you.
>>>
>>
>> I am binding to arrangedObjects of the NSArrayController
>
>
> Yes, you bind the content of the table view to the array controller, but you should bind the content of the NSArrayController to the "selection" key of the NSTreeController.
>
> What is the content binding of the array controller currently set to?
>
> --
> Rob Keniger
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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