Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKModifyRecordsOperationMBS class.

CKModifyRecordsOperationMBS.atomic as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
A Boolean value indicating whether the entire operation fails when one or more records in the same zone cannot be written.

Modifying records atomically prevents you from updating your data in a way that would leave it in an inconsistent state. You use atomic updates when you want to write multiple records to the same record zone. If there is a failure to modify any of the records in a particular zone, no changes are made to the other records in that same zone. The zone itself must have the CKRecordZoneCapabilityAtomic capability for this behavior to apply. If a record zone does not support the atomic capability, setting this property has no effect.

The default value of this property is true, which causes all modifications within a single record zone to be made atomically. If your operation object contains records in multiple record zones, a failure in one zone does not prevent modifications to records in a different zone. Changing the value of this property to false causes the records to be modified individually, regardless of whether the record zone supports atomic modifications.
(Read and Write property)

CKModifyRecordsOperationMBS.clientChangeTokenData as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
A data token used to track client-side changes to records.

When you modify records from a fetch operation, specify a client-generated data token using this property to indicate which version of the record you last modified. Compare the data token you supplied to the data token in the next record fetch to confirm the server has successfully received the device’s last modify request.

The default value is nil.

If you intend to change the value of this property, do so before executing the operation or submitting the operation object to a queue.
(Read and Write property)

CKModifyRecordsOperationMBS.savePolicy as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The policy to apply when the server contains a newer version of a specific record.

Each record has a change tag that allows the server to track when that record was saved. When you save a record, CloudKit compares the change tag in your local copy of the record with the one on the server. If the two tags do not match—meaning that there is a potential conflict—the server uses the value in this property to determine how to proceed.

The default value of this property is CKRecordSaveIfServerRecordUnchanged. If you intend to change the value of this property, do so before executing the operation or submitting the operation object to a queue.
(Read and Write property)

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...