Re: Minimizing NSTableView redraws
Re: Minimizing NSTableView redraws
- Subject: Re: Minimizing NSTableView redraws
- From: Graham Cox <email@hidden>
- Date: Thu, 31 Oct 2013 23:03:47 +0100
On 31 Oct 2013, at 6:01 pm, email@hidden wrote:
> I have profiled my code and it appears that "set to continuously update" marks the whole table view for update. On every keypress, the whole entire NSTableView is redrawn.
>
> Is there any strategy to minimize this full redraw?
You don’t mention how the text view is coupled to the table view. If you are doing this through a data source controller of your own, it’s up to you how to handle the update, for example by only calling for the relevant row to be reloaded. If you’re using bindings, you’re at the mercy of its implementation, so that might not be the best way forward for this case.
—Graham
_______________________________________________
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