mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-22 00:11:41 +01:00
Added utility for re-faulting all objects in a transaction/dataStack
This commit is contained in:
1 parent
f5627f0855
commit
c07435e866
4 files changed
+46
No files matched your search
@@ -167,6 +167,18 @@ internal extension NSManagedObjectContext {
|
||||
}
|
||||
}
|
||||
|
||||
internal func refreshAllObjectsAsFaults() {
|
||||
|
||||
if #available(iOS 8.3, *) {
|
||||
|
||||
self.refreshAllObjects()
|
||||
}
|
||||
else {
|
||||
|
||||
self.registeredObjects.forEach { self.refreshObject($0, mergeChanges: false) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// MARK: Private
|
||||
|
||||
|
||||
Reference in new issue
Block a user