mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-23 09:51:30 +01:00
temporarily fix an Xcode 7 bug (still present as of beta 5) (temporarily fixes #12)
This commit is contained in:
@@ -779,7 +779,7 @@ extension ListMonitor: FetchedResultsControllerHandler {
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
case .Move:
|
case .Move where indexPath != newIndexPath:
|
||||||
NSNotificationCenter.defaultCenter().postNotificationName(
|
NSNotificationCenter.defaultCenter().postNotificationName(
|
||||||
ListMonitorDidMoveObjectNotification,
|
ListMonitorDidMoveObjectNotification,
|
||||||
object: self,
|
object: self,
|
||||||
@@ -789,6 +789,9 @@ extension ListMonitor: FetchedResultsControllerHandler {
|
|||||||
UserInfoKeyNewIndexPath: newIndexPath!
|
UserInfoKeyNewIndexPath: newIndexPath!
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
default:
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ public final class ObjectMonitor<T: NSManagedObject> {
|
|||||||
let fetchRequest = NSFetchRequest()
|
let fetchRequest = NSFetchRequest()
|
||||||
fetchRequest.entity = object.entity
|
fetchRequest.entity = object.entity
|
||||||
|
|
||||||
fetchRequest.fetchLimit = 1
|
fetchRequest.fetchLimit = 0
|
||||||
fetchRequest.resultType = .ManagedObjectResultType
|
fetchRequest.resultType = .ManagedObjectResultType
|
||||||
fetchRequest.sortDescriptors = []
|
fetchRequest.sortDescriptors = []
|
||||||
|
|
||||||
@@ -288,7 +288,7 @@ extension ObjectMonitor: FetchedResultsControllerHandler {
|
|||||||
userInfo: [UserInfoKeyObject: anObject]
|
userInfo: [UserInfoKeyObject: anObject]
|
||||||
)
|
)
|
||||||
|
|
||||||
case .Update:
|
case .Update, .Move where indexPath == newIndexPath:
|
||||||
NSNotificationCenter.defaultCenter().postNotificationName(
|
NSNotificationCenter.defaultCenter().postNotificationName(
|
||||||
ObjectMonitorDidUpdateObjectNotification,
|
ObjectMonitorDidUpdateObjectNotification,
|
||||||
object: self,
|
object: self,
|
||||||
|
|||||||
Reference in New Issue
Block a user