title: NSFetchedResultsController delegate methods called infinite number of times upon insertNewObjectForEntityForName:inManagedObjectContext:
body: <p>[EDIT] I am changing this to more concisely explain what my problem was, after having more precisely pinpointed the issue.</p>
  
  <p>I am working on core data for my app, but am stumped. It hangs in this method every time.  No crashes, no logs, no nothing.  It just hangs.</p>
  
  <pre><code>- (void)insertNewObject:(id)sender
  {
      NSManagedObjectContext *context = [self.fetchedResultsController managedObjectContext];
      NSEntityDescription *entity = [[self.fetchedResultsController fetchRequest] entity];
      NSManagedObject *newObject = [NSEntityDescription insertNewObjectForEntityForName:[entity name] inManagedObjectContext:context];
  
      Section *newSection = (Section *)newObject;
      newSection.title = @"inserted";
  
  
      NSError *error = nil;
  
      if (![context save:&amp;error]) {
  
          NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
          abort();
      }
  }
  
  NSManagedObject *newObject = [NSEntityDescription insertNewObjectForEntityForName:[entity name] inManagedObjectContext:context];
  </code></pre>
  
  <p>I discovered that if I put NSLogs in these two delegate methods:</p>
  
  <pre><code>- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller
  - (void)controllerDidChangeContent:(NSFetchedResultsController *)controller
  </code></pre>
  
  <p>they just keep getting called infinite number of times.</p>