Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKModifyRecordsOperationMBS class.

CKModifyRecordsOperationMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

See also:

CKModifyRecordsOperationMBS.Constructor(recordsToSave() as CKRecordMBS, recordIDsToDelete() as CKRecordIDMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes and returns an operation object configured to save and delete the specified records.

recordsToSave: An array of CKRecordMBS objects representing the records to save, if any. You may specify nil for this parameter.
recordIDsToDelete: An array of CKRecordIDMBS objects representing the records you want to delete, if any. You may specify nil for this parameter.

Returns an initialized operation object.

The records you intend to save or delete must all reside in the same database, which you can specify when you configure the operation object. Saving a record that is not in the current database creates it in the database. Trying to delete a record that does not exist in the current database returns an error for that record.

See also:

CKModifyRecordsOperationMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 21.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Destructor

CKModifyRecordsOperationMBS.recordIDsToDelete as CKRecordIDMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The IDs of the records to delete permanently from the database.

This property contains the array of CKRecordID objects that identify the records to delete. The initial contents of the array are set to the records you specified in the Constructor.

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

When deleting records, the operation object reports progress only on the records you specify in this property. Deleting records can trigger the deletion of related records if there is an owner-owned relationship between the records involving a CKReference object. When additional deletions occur, they are not reported to the progress blocks of this object. For that reason, it is important to understand the implications of the ownership model you use when you relate records to each other through a CKReference object. For more information about owner-owned relationships, see CKReference.

CKModifyRecordsOperationMBS.recordsToSave as CKRecordMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The records to save to the database.

This property contains the array of CKRecordMBS objects that you want to save. The initial contents of the array are set to the records you specified in the constructor. You can modify this array as needed before executing the operation. The records must all target the same database but may belong to different zones in the database.

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

CKModifyRecordsOperationMBS.setrecordIDsToDelete(IDs() as CKRecordIDMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the IDs of the records to delete permanently from the database.

This property contains the array of CKRecordID objects that identify the records to delete. The initial contents of the array are set to the records you specified in the Constructor.

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

When deleting records, the operation object reports progress only on the records you specify in this property. Deleting records can trigger the deletion of related records if there is an owner-owned relationship between the records involving a CKReference object. When additional deletions occur, they are not reported to the progress blocks of this object. For that reason, it is important to understand the implications of the ownership model you use when you relate records to each other through a CKReference object. For more information about owner-owned relationships, see CKReference.

CKModifyRecordsOperationMBS.setRecordsToSave(IDs() as CKRecordMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the records to save to the database.

This property contains the array of CKRecordMBS objects that you want to save. The initial contents of the array are set to the records you specified in the constructor. You can modify this array as needed before executing the operation. The records must all target the same database but may belong to different zones in the database.

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

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


The biggest plugin in space...