• 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: 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

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

  • Prev by Date: Re: Are the Mac international resources available publicly?
  • Next by Date: Click in borderless window moves all windows to front
  • Previous by thread: Preventing View Update in NSTableView
  • Next by thread: Re: Preventing View Update in NSTableView
  • Index(es):
    • Date
    • Thread