Force redraw as resizing NSTableColumn in NSTableView?

Posted by Dov on Stack Overflow See other posts from Stack Overflow or by Dov
Published on 2010-12-29T21:50:42Z Indexed on 2010/12/29 21:54 UTC
Read the original article Hit count: 307

Filed under:
|
|
|

I've implemented - (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row in my NSTableView's delegate to resize the height of my table's rows as the width of the leftmost column changes. The problem is that only that column redraws during the resizing (and any column that slide into view during the resize). This results in the funky visual below after resizing. What I'd like is a way to tell the table view to completely redraw while the user is resizing a column. Right now the most I've been able to figure out is calling setNeedsDisplay after it that column finishes resizing.

alt text

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about mac