From b7685dc747024f9737b0c5da312b0dcbb1072c8f Mon Sep 17 00:00:00 2001 From: John Estropia Date: Mon, 26 Oct 2015 14:41:58 +0900 Subject: [PATCH] allow Sequences of NSManagedObject subclasses as argument to delete() method --- .../Saving and Processing/AsynchronousDataTransaction.swift | 2 +- CoreStore/Saving and Processing/BaseDataTransaction.swift | 2 +- .../Saving and Processing/SynchronousDataTransaction.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CoreStore/Saving and Processing/AsynchronousDataTransaction.swift b/CoreStore/Saving and Processing/AsynchronousDataTransaction.swift index 8bcabed..cddd47f 100644 --- a/CoreStore/Saving and Processing/AsynchronousDataTransaction.swift +++ b/CoreStore/Saving and Processing/AsynchronousDataTransaction.swift @@ -179,7 +179,7 @@ public final class AsynchronousDataTransaction: BaseDataTransaction { - parameter objects: the `NSManagedObject`s type to be deleted */ - public override func delete(objects: S) { + public override func delete(objects: S) { CoreStore.assert( !self.isCommitted, diff --git a/CoreStore/Saving and Processing/BaseDataTransaction.swift b/CoreStore/Saving and Processing/BaseDataTransaction.swift index f5269d6..addc74e 100644 --- a/CoreStore/Saving and Processing/BaseDataTransaction.swift +++ b/CoreStore/Saving and Processing/BaseDataTransaction.swift @@ -175,7 +175,7 @@ public /*abstract*/ class BaseDataTransaction { - parameter objects: the `NSManagedObject`s to be deleted */ - public func delete(objects: S) { + public func delete(objects: S) { CoreStore.assert( self.bypassesQueueing || self.transactionQueue.isCurrentExecutionContext(), diff --git a/CoreStore/Saving and Processing/SynchronousDataTransaction.swift b/CoreStore/Saving and Processing/SynchronousDataTransaction.swift index 16023c0..2733320 100644 --- a/CoreStore/Saving and Processing/SynchronousDataTransaction.swift +++ b/CoreStore/Saving and Processing/SynchronousDataTransaction.swift @@ -169,7 +169,7 @@ public final class SynchronousDataTransaction: BaseDataTransaction { - parameter objects: the `NSManagedObject`s to be deleted */ - public override func delete(objects: S) { + public override func delete(objects: S) { CoreStore.assert( !self.isCommitted,