NSFetchedResultsController calling delegate methods twice (and more)
I have a problem with NSFetchedResultsController which I'm using to keep UITableView in sync with coredata. Everything works okay, I init the NSFetchedResultsController when user needs it (if it's nil), and release it in the dealloc method of my TableViewController. The problem is, when I go to ... let's call it 'item', everything is okay. I add an object, delegate methods are fired, tableView is updated. But when I go back, and again click the 'item', I'm receiving the delegate calls twice. I add an object, and receive duplicate calls of all 4 methods (willChangeContent, didChangeSection, didChangeObject, didChangeContent). What surprises me, the tableView is up2date with just one added object, but [tableView insertRows...] is called twice with the same object. And if I do it for the third time (go back, select item), im getting the delegate calls 3 times.

THANK YOU A LOT!
NSFetchedResultsController calling delegate methods twice (and more)
===

I have a problem with NSFetchedResultsController which I'm using to keep UITableView in sync with coredata. Everything works okay, I init the NSFetchedResultsController when user needs it (if it's nil), and release it in the dealloc method of my TableViewController. The problem is, when I go to ... let's call it 'item', everything is okay. I add an object, delegate methods are fired, tableView is updated. But when I go back, and again click the 'item', I'm receiving the delegate calls twice. I add an object, and receive duplicate calls of all 4 methods (willChangeContent, didChangeSection, didChangeObject, didChangeContent). What surprises me, the tableView is up2date with just one added object, but [tableView insertRows...] is called twice with the same object. And if I do it for the third time (go back, select item), im getting the delegate calls 3 times.

THANK YOU A LOT!