From b283fbf5abc45ba81a58e43a1ac286e1f98e107b Mon Sep 17 00:00:00 2001 From: John Estropia Date: Thu, 3 Mar 2016 20:03:13 +0900 Subject: [PATCH] WIP: StorageInterface --- CoreStore/Setting Up/DataStack.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CoreStore/Setting Up/DataStack.swift b/CoreStore/Setting Up/DataStack.swift index 79f5efc..d4c697d 100644 --- a/CoreStore/Setting Up/DataStack.swift +++ b/CoreStore/Setting Up/DataStack.swift @@ -300,7 +300,12 @@ public final class DataStack { return storage.internalStore! } - @available(*, deprecated=2.0.0, message="Use addStorageAndWait(_:) by passing an SQLiteStore instance. Note that the previous default URL for the SQLite file was in the \"Application Support/.sqlite\" directory (or the \"Caches/.sqlite\" directory on tvOS), but the new addStorageAndWait(_:configuration:) method's default directory is now in the \"Application Support//.sqlite\" directory (or the \"Caches//.sqlite\" directory on tvOS)") + /** + Deprecated. Use `addStorageAndWait(_:)` by passing an `SQLiteStore` instance. + + - Warning: The previous default URL for the SQLite file was "Application Support/\.sqlite" ("Caches/\.sqlite" directory on tvOS), but the new `addStorageAndWait(_:)` method's default URL is now "Application Support/\/\.sqlite" ("Caches/\/\.sqlite" on tvOS) to better comply with per Apple's guidelines. + */ + @available(*, deprecated=2.0.0, message="Use addStorageAndWait(_:) by passing an SQLiteStore instance. Warning: the previous default URL for the SQLite file was \"Application Support/.sqlite\" (\"Caches/.sqlite\" directory on tvOS), but the new addStorageAndWait(_:configuration:) method's default URL is now \"Application Support//.sqlite\" (\"Caches//.sqlite\" on tvOS) to better comply with per Apple's guidelines,") public func addSQLiteStoreAndWait(fileURL fileURL: NSURL = DeprecatedDefaults.defaultSQLiteStoreURL, configuration: String? = nil, resetStoreOnModelMismatch: Bool = false) throws -> NSPersistentStore { let storage = try self.addStorageAndWait(