Instance Method

tryLock()

Attempts to acquire a lock.

Declaration

func tryLock() -> Bool

Return Value

true if successful, otherwise false.

Discussion

Returns immediately—contrast lock() which blocks.

See Also

Deprecated

static let NSPersistentStoreDidImportUbiquitousContentChanges: NSNotification.Name

Posted after records are imported from the ubiquitous content store.

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