> What I'm basically trying to do is call reloadData but with animation and I > can't see how to do it? I know about removing/inserting rows with animation > and I tried this, but I keep crashing and I would think it's because I'm > removing rows and inserting rows after my datasource has been modified. > That's why normally I use reloadData and it works fine. Also, it seems there > is a method to do this in iOS but it's not available on Mac. So is it > possible to do this? Or can I only use the animation when removing inserting > rows without changing the modifying the datasource? Thanks, > Hi Rick,
You probably want - (void)reloadDataForRowIndexes:(NSIndexSet *)rowIndexes columnIndexes:(NSIndexSet *)columnIndexes NS_AVAILABLE_MAC(10_6); In my app, I use it to update rows which get updated one at a time but you can provide an index set with many rows. You might be able to use -rowsInRect which I haven't used passing the rect of the table view's scroll view, I would think. Then you can create the index set with -indexSetWithIndexesInRange: Hope this helps Marc _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com