mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-20 16:44:08 +01:00
fix merge
This commit is contained in:
@@ -61,7 +61,7 @@ internal extension NSManagedObjectContext {
|
|||||||
|
|
||||||
get {
|
get {
|
||||||
|
|
||||||
let value: NSNumber? = getAssociatedObjectForKey(
|
let value: NSNumber? = cs_getAssociatedObjectForKey(
|
||||||
&PropertyKeys.isSavingSynchronously,
|
&PropertyKeys.isSavingSynchronously,
|
||||||
inObject: self
|
inObject: self
|
||||||
)
|
)
|
||||||
@@ -69,7 +69,7 @@ internal extension NSManagedObjectContext {
|
|||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
|
|
||||||
setAssociatedWeakObject(
|
cs_setAssociatedWeakObject(
|
||||||
newValue.flatMap { NSNumber(bool: $0) },
|
newValue.flatMap { NSNumber(bool: $0) },
|
||||||
forKey: &PropertyKeys.isSavingSynchronously,
|
forKey: &PropertyKeys.isSavingSynchronously,
|
||||||
inObject: self
|
inObject: self
|
||||||
|
|||||||
@@ -113,9 +113,9 @@ public class CSBaseDataTransaction: NSObject, CoreStoreObjectiveCType {
|
|||||||
Refreshes all registered objects `NSManagedObject`s in the transaction.
|
Refreshes all registered objects `NSManagedObject`s in the transaction.
|
||||||
*/
|
*/
|
||||||
@objc
|
@objc
|
||||||
public func refreshAllObjectsAsFaults() {
|
public func refreshAndMergeAllObjects() {
|
||||||
|
|
||||||
self.bridgeToSwift.refreshAllObjectsAsFaults()
|
self.bridgeToSwift.refreshAndMergeAllObjects()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -98,8 +98,8 @@ public extension CSCoreStore {
|
|||||||
Refreshes all registered objects `NSManagedObject`s in the `defaultStack`.
|
Refreshes all registered objects `NSManagedObject`s in the `defaultStack`.
|
||||||
*/
|
*/
|
||||||
@objc
|
@objc
|
||||||
public static func refreshAllObjectsAsFaults() {
|
public static func refreshAndMergeAllObjects() {
|
||||||
|
|
||||||
CoreStore.refreshAllObjectsAsFaults()
|
CoreStore.refreshAndMergeAllObjects()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,8 +98,8 @@ public extension CSDataStack {
|
|||||||
Refreshes all registered objects `NSManagedObject`s in the `DataStack`.
|
Refreshes all registered objects `NSManagedObject`s in the `DataStack`.
|
||||||
*/
|
*/
|
||||||
@objc
|
@objc
|
||||||
public func refreshAllObjectsAsFaults() {
|
public func refreshAndMergeAllObjects() {
|
||||||
|
|
||||||
self.bridgeToSwift.refreshAllObjectsAsFaults()
|
self.bridgeToSwift.refreshAndMergeAllObjects()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user