|Nov 27, 2012, 03:59 PM||#1|
Animated row insertion in tableview
Hello. I have a view-based table view (an outline view) that can show/hide rows according to some view settings. FYI, each row shows a type of graph with a given color, and the user gets to choose the colors they want to display.
I want row removal and insertion to animate.
The view is bound to a controller object (NSTreeController), so changes to the model (filtering or adding/removing items) immediately reloads the table, stoping the animation. For row removal, I can sill update the model after the animation. For row insertion, I can't find a solution. If I update the model after the animation, new rows will show duplicate items, not the new items since they're not yet added.
In the table view session from WWDC 2011, they present some way to animate insertion during drag and drop, but it's not what I'm doing. Plus, inserted rows should show their content during the animation (like when an outline view item is expanded) instead of a gap.
|Thread Tools||Search this Thread|
All times are GMT -5. The time now is 01:44 PM.