Asynchronous updating of NSTableView help
Asynchronous updating of NSTableView help
- Subject: Asynchronous updating of NSTableView help
- From: Jerry Shields <email@hidden>
- Date: Sun, 15 Dec 2002 09:49:53 -0500
I have a NSTableView that I am trying to update asynchronous with a
callback from a thread that supplies the data. I add the data object
to the table's data source one cell at a time and for each cell I
have tried to get the table view to draw that cell. I have tried
calling "noteNumberOfRowsChanged", "reloadData" and
"setNeedsDisplay"as well as "display" for the NSTableView but none of
those will ensure that all the cells that arrive get drawn properly.
What happens is that the data arrives and is put into the data source
properly (verified via NSLogs in the data source) but the
corresponding cells in the table view don't always update. Sometimes
all the cells will update properly and sometimes only the first few
do. The cells are there because if I click in the table, all the
cells will redraw. Also if there are enough rows generated to cause
the scroll bars to appear, all the visible cells seem to get drawn.
Does anyone have an idea of what I need to do to get these cells to
draw as they arrive into the data source? Is there some setup of the
view that I am missing?
Jerry
--
----------
Jerry Shields
p-TUI Racing
email@hidden
(978) 486-9412
(413) 723-4609 FAX
_______________________________________________
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.