Contents

NSPersistentStoreRemoteChange

A notification that posts after another process writes to a persistent store.

Declaration

static let NSPersistentStoreRemoteChange: NSNotification.Name

Discussion

This notification’s object is the changed store coordinator. The framework posts the notification to a private thread. Move to a known thread before peforming any work.

The userInfo dictionary contains the store’s URL, the store’s unique identifier, and the transaction’s history token, which you access with the NSPersistentStoreURLKey, NSStoreUUIDKey, and NSPersistentHistoryTokenKey keys. It’s safe to capture the dictionary’s contents.

See Also

Core Data