title: UICollectionView + NSFetchedResultsController + performBatchUpdates
body: <p>I have been testing the proposed solution <a href="https://github.com/AshFurrow/UICollectionView-NSFetchedResultsController" rel="nofollow">here</a> for updating a <code>UICollectionView</code> from a <code>NSFetcherResultsController</code>. But I having some issues.</p>
  
  <p>My <code>UICollectionView</code> shows a hierachy (sorted by name) of folders and documents. Tapping on a document open it and tapping on a folder push a new controller with a <code>UICollectionView</code> (drill down).</p>
  
  <p>The user can copy/cut/paste documents and folders.</p>
  
  <p>Example of the issue:</p>
  
  <pre><code>Root
  |
  ---"B"
      |---"A"
  </code></pre>
  
  <p>If I copy "A" form "B" to Root, "A" is inserted in Root, and "B" is updated (elmentsCount--). The problem is that "B" is getting the animation for inserting, and "A" is getting the animation for update.</p>
  
  <p>I have put two log messages inside the block that I am using for performing the batch update:</p>
  
  <pre><code>case NSFetchedResultsChangeInsert:
      NSLog(@"INSERTING at pos : %d", ((NSIndexPath *)obj).item);
      [self.libraryCollectionBrowser insertItemsAtIndexPaths:@[obj]];
      break;
   case NSFetchedResultsChangeUpdate:
      NSLog(@"UPDATING at pos : %d", ((NSIndexPath *)obj).item);
      [self.libraryCollectionBrowser reloadItemsAtIndexPaths:@[obj]];
      break;
  </code></pre>
  
  <p>The log is:</p>
  
  <pre><code>INSERTING at pos : 0
  UPDATING at pos : 0
  </code></pre>
  
  <p>What is the right way to do this?</p>