osx - NSOutlineView selected item move -
i have nsoutlineview has 2 groups , select 1 item when init. when click headercell , let 1 group collapse , other expand, selected item moves next group. why happen?
how can improve , make selected item not move?
update: happens when cell move outside nsoutlineview.so guess problem cell reuse.
update: before

after:

update: problem nsoutlineview's index of row changes when outlineview collapses or expands.
Comments
Post a Comment