Type Property

NSPersistentStoreDidImportUbiquitousContentChanges

Posted after records are imported from the ubiquitous content store.

Declaration

static let NSPersistentStoreDidImportUbiquitousContentChanges: NSNotification.Name

Discussion

The notification’s object is set to the NSPersistentStoreCoordinator instance which registered the store. The notification’s userInfo dictionary contains the same keys as the NSManagedObjectContextObjectsDidChange notification (NSInsertedObjectsKey, NSUpdatedObjectsKeyNSDeletedObjectsKey), however the values are sets of NSManagedObjectID objects rather than sets of NSManagedObject objects.

See Also

Deprecated

enum NSPersistentStoreUbiquitousTransitionType

These constants are used as the value corresponding to the NSPersistentStoreUbiquitousTransitionTypeKey in the user info dictionary of NSPersistentStoreCoordinatorStoresWillChange and NSPersistentStoreCoordinatorStoresDidChange notifications to identify the type of event leading to a change.

Deprecated
class func removeUbiquitousContentAndPersistentStore(at: URL, options: [AnyHashable : Any]?)

Deletes all ubiquitous content for all peers for the persistent store at a given URL and also delete the local store file.

Deprecated
class func metadataForPersistentStore(ofType: String?, at: URL) -> [String : Any]

Returns a dictionary containing the metadata stored in the persistent store at a given URL.

Deprecated
func unlock()

Relinquishes a previously acquired lock.

Deprecated
func lock()

Attempts to acquire a lock.

Deprecated
func tryLock() -> Bool

Attempts to acquire a lock.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software