NSTableView updating single cells
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.