Re: Preventing View Update in NSTableView
Re: Preventing View Update in NSTableView
- Subject: Re: Preventing View Update in NSTableView
- From: Graham Cox <email@hidden>
- Date: Thu, 14 Apr 2011 12:20:27 +1000
On 14/04/2011, at 10:13 AM, Peter Lübke wrote:
> I'd like to temporarily 'freeze' the cells in the table view while the data displayed in those cells are changed so they are not continuously redrawn.
> When the changes are completed, they should be updated at once.
This is what happens by default.
The redraws do not take place until the event loop completes, so if all your changes are made within the event cycle, you'll only get one redraw. If you are changing your data model one item per event loop - which you'd have to go to a lot of trouble to accomplish - then you'll get the table updating for each change.
--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