My Core Data model has two entities: Author and Book with a To-Many relationship (one author->many books). In the main view I display a list of
Why don't you commit the transactions saving changes?
- (void)saveAuthorName:(NSString *)newName {
for (Book* book in author.books) {
[book willChangeValueForKey:@"author"];
}
author.name = newName;
for (Book* book in author.books) {
[book didChangeValueForKey:@"author"];
}
NSError * error ;
if( ![self.moc save:&error] ) {
..... do something ..
}
}