Mercurial > dwindows
comparison mac/dw.m @ 2193:e136e65547bf
Mac: Don't reload the whole NSOutlineView after a change, to prevent selection
and scrolling issues in NSView based trees.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 19 Oct 2020 20:51:31 +0000 |
parents | 214e1ea303e2 |
children | 8c6f087e7182 |
comparison
equal
deleted
inserted
replaced
2192:214e1ea303e2 | 2193:e136e65547bf |
---|---|
7384 } | 7384 } |
7385 if(icon) | 7385 if(icon) |
7386 { | 7386 { |
7387 [array replaceObjectAtIndex:0 withObject:icon]; | 7387 [array replaceObjectAtIndex:0 withObject:icon]; |
7388 } | 7388 } |
7389 [tree reloadData]; | 7389 NSInteger row = [tree rowForItem:item]; |
7390 [tree reloadDataForRowIndexes:[NSIndexSet indexSetWithIndex:row] | |
7391 columnIndexes:[NSIndexSet indexSetWithIndex:0]]; | |
7390 DW_LOCAL_POOL_OUT; | 7392 DW_LOCAL_POOL_OUT; |
7391 DW_FUNCTION_RETURN_NOTHING; | 7393 DW_FUNCTION_RETURN_NOTHING; |
7392 } | 7394 } |
7393 | 7395 |
7394 /* | 7396 /* |