2
0

More reliable monitoring of changes using NSFetchedResultsController.

This commit is contained in:
Maarten Billemont
2020-07-05 20:24:18 -04:00
parent 7368b1be90
commit 9e91f0a9d6
2 changed files with 37 additions and 29 deletions

View File

@@ -29,6 +29,8 @@
if ([self hasChanges])
[self performBlockAndWait:^{
@try {
[self processPendingChanges];
NSError *error = nil;
if (!(success = [self save:&error]))
MPError( error, @"While saving." );