Contents

NSPersistentStoreCoordinatorStoresWillChange

A notification that posts before a coordinator changes its registered stores.

Declaration

static let NSPersistentStoreCoordinatorStoresWillChange: NSNotification.Name

Discussion

This notification’s object is the store coordinator that’s about to change. The framework posts the notification to an internal thread. Move to a known thread before peforming any work.

The userInfo dictionary contains information about the added and removed persistent stores, which you access with the NSAddedPersistentStoresKey and NSRemovedPersistentStoresKey keys. Don’t capture the dictionary’s contents.

See Also

Core Data