mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-13 12:23:32 +01:00
test improvements to ListMonitor
This commit is contained in:
1 parent
22943d2c76
commit
e627cf8161
1 file changed
+5
@@ -84,6 +84,11 @@ internal extension NSManagedObjectContext {
|
||||
|
||||
context?.performBlock { () -> Void in
|
||||
|
||||
let updatedObjects = (note.userInfo?[NSUpdatedObjectsKey] as? [NSManagedObject]) ?? []
|
||||
for object in updatedObjects {
|
||||
|
||||
context?.objectWithID(object.objectID).willAccessValueForKey(nil)
|
||||
}
|
||||
context?.mergeChangesFromContextDidSaveNotification(note)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user