# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1603140691 0 # Node ID e136e65547bf795ac1c1e7d9b0b80bba54804834 # Parent 214e1ea303e2d92bba2463bbe4ea6ad7cb639b0c Mac: Don't reload the whole NSOutlineView after a change, to prevent selection and scrolling issues in NSView based trees. diff -r 214e1ea303e2 -r e136e65547bf mac/dw.m --- 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; }