Type Property


Posted after records are imported from the ubiquitous content store.


static let NSPersistentStoreDidImportUbiquitousContentChanges: NSNotification.Name


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


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.

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.

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

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

func unlock()

Relinquishes a previously acquired lock.

func lock()

Attempts to acquire a lock.

func tryLock() -> Bool

Attempts to acquire a lock.


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