Enumeration

NSMergePolicyType

Constants that define merge policy types.

Declaration

enum NSMergePolicyType : UInt

Topics

Policies

case errorMergePolicyType

Default policy for all managed object contexts.

case mergeByPropertyStoreTrumpMergePolicyType

A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by individual property, with the in-memory changes trumping external changes.

case mergeByPropertyObjectTrumpMergePolicyType

A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by individual property, with the external changes trumping in-memory changes.

case overwriteMergePolicyType

A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by pushing the entire in-memory object to the persistent store.

case rollbackMergePolicyType

A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by discarding all state for the changed objects in conflict.

See Also

Policies

var NSErrorMergePolicy: AnyObject

Default policy for all managed object contexts.

var NSMergeByPropertyStoreTrumpMergePolicy: AnyObject

A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by individual property, with the in-memory changes trumping external changes.

var NSMergeByPropertyObjectTrumpMergePolicy: AnyObject

A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by individual property, with the external changes trumping in-memory changes.

var NSOverwriteMergePolicy: AnyObject

A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by pushing the entire in-memory object to the persistent store.

var NSRollbackMergePolicy: AnyObject

A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by discarding all state for the changed objects in conflict.

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