new auto-commit transaction methods

This commit is contained in:
John Estropia
2017-03-31 19:44:18 +09:00
parent d72d1afe8b
commit 97d7a276fe
39 changed files with 3739 additions and 3232 deletions

View File

@@ -529,15 +529,15 @@ public final class DataStack: Equatable {
}
// MARK: Deprecated
// MARK: Obsolete
@available(*, deprecated: 3.0.0, renamed: "entityDescription(for:)")
@available(*, obsoleted: 4.0.0, renamed: "entityDescription(for:)")
public func entityDescriptionForType(_ type: NSManagedObject.Type) -> NSEntityDescription? {
return self.entityDescription(for: type)
}
@available(*, deprecated: 3.0.0, renamed: "objectID(forURIRepresentation:)")
@available(*, obsoleted: 4.0.0, renamed: "objectID(forURIRepresentation:)")
public func objectIDForURIRepresentation(_ url: URL) -> NSManagedObjectID? {
return self.objectID(forURIRepresentation: url)