PDA

View Full Version : force reorder of NSOutlineview




MrFusion
Mar 25, 2009, 03:47 PM
How can I force an NSOutlineview to reorder itself, when no new items are added. The position of the items is changed through drag and drop, but this is reflected in the actual onscreen position. The position variable is correctly updated.

When items are added, the column is correctly reordered.


[myView reloadData];

is not doing the trick.

Thanks.



kainjow
Mar 25, 2009, 05:49 PM
Are you using bindings?

MrFusion
Mar 25, 2009, 06:16 PM
Are you using bindings?

Yes, the datasource is a custom subclass of NSTreecontroller (to handle drag and drop).