• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Preventing View Update in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing View Update in NSTableView


  • Subject: Re: Preventing View Update in NSTableView
  • From: Peter Lübke <email@hidden>
  • Date: Thu, 14 Apr 2011 09:42:38 +0200


Am 14.04.2011 um 04:20 schrieb Graham Cox:


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.


This is of course true if the changes are made in the main thread.
I should have mentioned that I'm changing the data in separate worker threads.


Actually, it's possible that there are several worker threads changing data of different tables in different windows at the same time, while the associated windows display attached sheets showing progress. Permanently redrawing the tables's cells at this stage is confusing and also undesirable for performance reasons.


Am I missing something I could override in my table view or array controller?


Thanks,

Peter_______________________________________________

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


  • Follow-Ups:
    • Re: Preventing View Update in NSTableView
      • From: Quincey Morris <email@hidden>
References: 
 >Preventing View Update in NSTableView (From: Peter Lübke <email@hidden>)
 >Re: Preventing View Update in NSTableView (From: Graham Cox <email@hidden>)

  • Prev by Date: Click in borderless window moves all windows to front
  • Next by Date: [ANN] Swipe Conference Australia, September 2011
  • Previous by thread: Re: Preventing View Update in NSTableView
  • Next by thread: Re: Preventing View Update in NSTableView
  • Index(es):
    • Date
    • Thread