Constants to indicate the concurrency pattern with which a context will be used.


enum NSManagedObjectContextConcurrencyType : UInt


See also init(concurrencyType:) and Concurrency with Core Data.



case confinementConcurrencyType

Specifies that the context will use the thread confinement pattern.

case privateQueueConcurrencyType

Specifies that the context will be associated with a private dispatch queue.

case mainQueueConcurrencyType

Specifies that the context will be associated with the main queue.

See Also

Managing Concurrency

var automaticallyMergesChangesFromParent: Bool

A Boolean value that indicates whether the context automatically merges changes saved to its persistent store coordinator or parent context.

var queryGenerationToken: NSQueryGenerationToken?

Returns the token associated with the query generation currently in use by this context.

var mergePolicy: Any

The merge policy of the context.

var transactionAuthor: String?

The author for the context that is used as an identifier in persistent history transactions.

func mergeChanges(fromContextDidSave: Notification)

Merges the changes specified in a given notification.

func setQueryGenerationFrom(NSQueryGenerationToken?)

Sets the query generation this context should use.

let NSManagedObjectContextQueryGenerationKey: String

Constant used to reference the query generation token.

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