Instance Property

recordChangeTag

A string containing the server change token for the record.

Declaration

@property(nonatomic, readonly, copy) NSString *recordChangeTag;

Discussion

When you fetch a record from the server, you get the current version of that record as it exists on the server. However, at any time after you fetch a record, other users might save a newer version of the record to the server. Every time a record is saved, the server updates the record’s change token to a new value. When you save your instance of the record to the server, the server compares the token in your record with the token on the server. If the two tokens match, the server knows that you modified the latest version of the record and that your changes can be applied right away. If the two tokens do not match, the server applies the save policy your app specified to determine how to proceed.

In your own code, you can use change tokens to distinguish between two different versions of the same record.

See Also

Accessing the Record’s Metadata

recordID

The unique ID of the record.

recordType

The app-defined string that identifies the type of the record.

creationDate

The time when the record was first saved to the server.

creatorUserRecordID

The ID of the user who created the record.

modificationDate

The time when the record was last saved to the server.

lastModifiedUserRecordID

The ID of the user who last modified the record.

CKRecordID

An object that uniquely identifies a record in a database.

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