Just a short overview on what my problem refers to. The data model is based on two NSManagedObject classes called "Customer" and "Reservation". The JSON I get from the web service looks like this:
"Reservation": {
"Id": 1,
"Reservation": "Just a description",
"Note": "Just anything",
"Customer": {
"Id": 1,
"Name": "Smith",
"Firstname": "John",
"Phonenumber": "00000"
}
}
I use NSFetchedResultsController and its delegates to manage the table view. Receiving a new entry works properly. My fetchController code looks like this:
fetchedResultsController = [Reservation fetchAllSortedBy:@"name" ascending:YES withPredicate:nil groupBy:@"name"];
fetchedResultsController.delegate = self;
If anything changes in the Reservation object the table view get updated properly too. The problem just cames up when anything changes in the mapped "Customer" object like the Name, Firstname or the Phonenumber.
Checking the database.sql file makes me sure that the data get changed in the database and RestKit / Core Data works correctly. It seems that the only problem is depending on the not called delegates. If I change an Attribute in "Reservation" and "Customer" the delegates get fired (probably because of the changes in "Reservation") correctly and the table view becomes updated correctly for all Customer and Reservation properties.
If I close and reopen the App the table view gets loaded perfectly as it should.