mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-26 03:11:30 +01:00
fix From clauses not setting the NSFetchRequest's affectedStores property properly
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = "CoreStore"
|
s.name = "CoreStore"
|
||||||
s.version = "1.6.9"
|
s.version = "1.6.10"
|
||||||
s.license = "MIT"
|
s.license = "MIT"
|
||||||
s.summary = "Unleashing the real power of Core Data with the elegance and safety of Swift"
|
s.summary = "Unleashing the real power of Core Data with the elegance and safety of Swift"
|
||||||
s.homepage = "https://github.com/JohnEstropia/CoreStore"
|
s.homepage = "https://github.com/JohnEstropia/CoreStore"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>FMWK</string>
|
<string>FMWK</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.6.9</string>
|
<string>1.6.10</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
|
|||||||
@@ -33,11 +33,10 @@ import CoreData
|
|||||||
// http://stackoverflow.com/questions/14396375/nsfetchedresultscontroller-crashes-in-ios-6-if-affectedstores-is-specified
|
// http://stackoverflow.com/questions/14396375/nsfetchedresultscontroller-crashes-in-ios-6-if-affectedstores-is-specified
|
||||||
internal final class CoreStoreFetchRequest: NSFetchRequest {
|
internal final class CoreStoreFetchRequest: NSFetchRequest {
|
||||||
|
|
||||||
|
@objc
|
||||||
override var affectedStores: [NSPersistentStore]? {
|
override var affectedStores: [NSPersistentStore]? {
|
||||||
|
|
||||||
get { return self.safeAffectedStores }
|
get { return super.affectedStores }
|
||||||
set { self.safeAffectedStores = newValue }
|
set { super.affectedStores = newValue }
|
||||||
}
|
}
|
||||||
|
|
||||||
private var safeAffectedStores: [NSPersistentStore]?
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user