I have an NSTableView
inside and NSScrollView
in a pretty standard configuration. When I sort the table view (by clicking one of the column headers), everything that is currently visible gets displayed correctly, but when I scroll in any direction (left, right, up, down) the cells that I scroll to haven't been updated correctly. If half a cell was visible when I sorted, it will even display half the cell with the old value and half the cell with the new value when I scroll to view the whole cell.
Whats going on? Can I force the table view to redraw everything when I sort the table?