Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Nov 27, 2012, 03:59 PM   #1
macrumors 6502a
Join Date: Mar 2009
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.

Any suggestions?
jeanlain is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Pages Blank Page Insertion? Sambo110 Mac Applications and Mac App Store 6 Jun 20, 2013 03:08 PM
Populating TableView Mvkoe iPhone/iPad Programming 5 Dec 1, 2012 04:34 PM
rMBP - Slow keyboard response after wake or USB insertion? neoben MacBook Pro 1 Nov 25, 2012 09:06 AM

Forum Jump

All times are GMT -5. The time now is 09:16 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC