silence deprecation internal warnings

This commit is contained in:
John Estropia
2019-01-23 12:25:52 +09:00
parent 94d9116299
commit 2863605d84
5 changed files with 68 additions and 57 deletions

View File

@@ -72,7 +72,7 @@ internal extension NSManagedObjectContext {
#if os(iOS) || os(macOS)
context.observerForDidImportUbiquitousContentChangesNotification = NotificationObserver(
notificationName: NSNotification.Name.NSPersistentStoreDidImportUbiquitousContentChanges,
notificationName: NSNotification.Name("com.apple.coredata.ubiquity.importer.didfinishimport"), // NSNotification.Name.NSPersistentStoreDidImportUbiquitousContentChanges (used string literals to silence deprecation warning)
object: coordinator,
closure: { [weak context] (note) -> Void in