Mercurial > dwindows
changeset 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 | b3989eee8d88 |
files | mac/dw.m |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Thu Oct 15 18:14:32 2020 +0000 +++ b/mac/dw.m Mon Oct 19 20:51:31 2020 +0000 @@ -7386,7 +7386,9 @@ { [array replaceObjectAtIndex:0 withObject:icon]; } - [tree reloadData]; + NSInteger row = [tree rowForItem:item]; + [tree reloadDataForRowIndexes:[NSIndexSet indexSetWithIndex:row] + columnIndexes:[NSIndexSet indexSetWithIndex:0]]; DW_LOCAL_POOL_OUT; DW_FUNCTION_RETURN_NOTHING; }