• 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
NSTableView updating single cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView updating single cells


  • Subject: NSTableView updating single cells
  • From: Nicolas Berloquin <email@hidden>
  • Date: Wed, 5 May 2004 11:02:39 +0200

Hello !


I searched mamasam cocoadev, google, ... and I can't find answers to a problem that I thought would be so common, so I ask you here:

I have an NSTableView with a datasource (no bindings).
The datasource is updated every second and most of the time, only a couple cells per row need to be updated on screen.
So I'm looking for a way to tell the tableview or the colums the equivallent of setNeedsDisplay: (I don't need real-time updating).
Right now, I resorted into calling reloadData, but this call is VERY expensive (my app goes up to 60% cpu usage when that happens).

I thought about calling setObjectValue: on each updated cell instead (even with dummy data, since the real data is held by my datasource), but I find this solution ugly. Right now my tableView is read-only, but I will need to solve this problem for a tableview that writes data back to the datasource...

I'm sure this is a problem people face all the time, or am I way off ??

thanks !
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: NSConnection and independant queuing
  • Next by Date: Re: NSTextField and bindings
  • Previous by thread: Re: The Cell from Hell (TM)
  • Next by thread: Re: NSTableView updating single cells
  • Index(es):
    • Date
    • Thread