mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 21:23:43 +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(
|
||||
ListMonitorDidMoveObjectNotification,
|
||||
object: self,
|
||||
@@ -789,6 +789,9 @@ extension ListMonitor: FetchedResultsControllerHandler {
|
||||
UserInfoKeyNewIndexPath: newIndexPath!
|
||||
]
|
||||
)
|
||||
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ public final class ObjectMonitor<T: NSManagedObject> {
|
||||
let fetchRequest = NSFetchRequest()
|
||||
fetchRequest.entity = object.entity
|
||||
|
||||
fetchRequest.fetchLimit = 1
|
||||
fetchRequest.fetchLimit = 0
|
||||
fetchRequest.resultType = .ManagedObjectResultType
|
||||
fetchRequest.sortDescriptors = []
|
||||
|
||||
@@ -288,7 +288,7 @@ extension ObjectMonitor: FetchedResultsControllerHandler {
|
||||
userInfo: [UserInfoKeyObject: anObject]
|
||||
)
|
||||
|
||||
case .Update:
|
||||
case .Update, .Move where indexPath == newIndexPath:
|
||||
NSNotificationCenter.defaultCenter().postNotificationName(
|
||||
ObjectMonitorDidUpdateObjectNotification,
|
||||
object: self,
|
||||
|
||||
Reference in New Issue
Block a user