mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-20 16:44:08 +01:00
workaround for iOS 10 regression in "affectedStores" retain bug
This commit is contained in:
@@ -49,14 +49,13 @@ internal final class CoreStoreFetchRequest<T: NSFetchRequestResult>: NSFetchRequ
|
|||||||
|
|
||||||
get {
|
get {
|
||||||
|
|
||||||
return super.affectedStores
|
// This forced-casting is needed to fix an ARC bug with "affectedStores" mis-retaining the array
|
||||||
// let affectedStores: NSArray? = super.affectedStores.flatMap({ NSArray(array: $0) } )
|
let affectedStores: NSArray? = super.affectedStores.flatMap({ NSArray(array: $0) } )
|
||||||
// return affectedStores as? [NSPersistentStore]
|
return affectedStores as? [NSPersistentStore]
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
|
|
||||||
super.affectedStores = newValue
|
super.affectedStores = newValue
|
||||||
// super.affectedStores = newValue.flatMap(Array.init)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user