Permalink
Browse files

handled a case for NSFetchedResultsChangeUpdate in controller(control…

…ler, didChangeObject:anObject, atIndexPath:indexPath, forChangeType:type, newIndexPath:newIndexPath)
  • Loading branch information...
1 parent 2833c6b commit baa24c229702bd2b7041e3380f948c0febb9da37 @naoyamakino naoyamakino committed Dec 20, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 examples/Recipes/app/controllers/recipe_list_table_view_controller.rb
@@ -74,12 +74,8 @@ def controller(controller, didChangeObject:anObject, atIndexPath:indexPath, forC
when NSFetchedResultsChangeDelete
then tableView.deleteRowsAtIndexPaths(NSArray.arrayWithObject(indexPath),
withRowAnimation:UITableViewRowAnimationFade)
- #TODO case for NSFetchedResultsChangeUpdate is complaining that self does not have configureCell:atIndexPath method.
- #cannot figure out how to call it appropriately. leaving commented it out for now.
- #http://developer.apple.com/library/ios/#documentation/CoreData/Reference/NSFetchedResultsControllerDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/NSFetchedResultsControllerDelegate/controllerWillChangeContent:
- #when NSFetchedResultsChangeUpdate
- # then self.configureCell(tableView.cellForRowAtIndexPath(indexPath),
- # atIndexPath:indexPath)
+ when NSFetchedResultsChangeUpdate
+ then tableView(tableView, cellForRowAtIndexPath:indexPath)
when NSFetchedResultsChangeMove
then
tableView.deleteRowsAtIndexPaths(NSArray.arrayWithObject(indexPath),

0 comments on commit baa24c2

Please sign in to comment.