Magical NSFetchedResultsController bugfix....

This commit is contained in:
John Estropia
2016-09-09 12:49:10 +09:00
parent 82de482191
commit 3f28198552
19 changed files with 150 additions and 158 deletions

View File

@@ -45,9 +45,18 @@ internal final class CoreStoreFetchRequest<T: NSFetchRequestResult>: NSFetchRequ
// MARK: NSFetchRequest
@objc
override var affectedStores: [NSPersistentStore]? {
dynamic override var affectedStores: [NSPersistentStore]? {
get { return super.affectedStores }
set { super.affectedStores = newValue }
get {
return super.affectedStores
// let affectedStores: NSArray? = super.affectedStores.flatMap({ NSArray(array: $0) } )
// return affectedStores as? [NSPersistentStore]
}
set {
super.affectedStores = newValue
// super.affectedStores = newValue.flatMap(Array.init)
}
}
}