Instance Property

version

The version of data in the receiver.

Declaration

@property(nonatomic, readonly) uint64_t version;

Discussion

The version number is used by the persistent store coordinator to detect and handle merge conflicts. The version number should be stored with the record. The version number should (implicitly) start at zero (where zero indicates an unsaved object in memory) and be incremented by exactly one every time you save. In addition, you increment the version number when you or the Core Data framework have marked the associated managed object for optimistic locking.

See Also

Managing Node Data

objectID

The object ID that identifies the data stored by the receiver.

- updateWithValues:version:

Update the values and version to reflect new data being saved to or loaded from the external store.

- valueForPropertyDescription:

Returns the value for the given property.