Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKRecordMBS class.

CKRecordMBS.creationDate as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The time when the record was first saved to the server.

The creation date reflects the time at which a record with the current record’s ID was created on the server. For new instances of this class, the value of this property is initially set to nil. When you save the record to the server, the value is updated with the appropriate creation date for the record.
(Read only property)

CKRecordMBS.creationDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The time when the record was first saved to the server.

The creation date reflects the time at which a record with the current record’s ID was created on the server. For new instances of this class, the value of this property is initially set to nil. When you save the record to the server, the value is updated with the appropriate creation date for the record.
(Read only property)

CKRecordMBS.creatorUserRecordID as CKRecordIDMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The ID of the user who created the record.

Use the value in this property to retrieve the user record of the user who created this record. Every user of the app has a unique user record that is empty by default. Apps can add data to the user record on behalf of the user but should not store sensitive data in it.
(Read only property)

CKRecordMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal object reference.

(Read and Write property)

CKRecordMBS.lastModifiedUserRecordID as CKRecordIDMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The ID of the user who last modified the record.

Use the value in this property to retrieve the user record of the user who last modified this record. Every user of the app has a unique user record that is empty by default. Apps can add data to the user record on behalf of the user but should not store sensitive data in it.
(Read only property)

CKRecordMBS.modificationDate as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The time when the record was last saved to the server.

The modification date reflects the time at which a record with the current record’s ID was last saved to the server. For new instances of this class, the value of this property is initially set to nil. When you save the record to the server, the value is updated with the appropriate modification date for the record.
(Read only property)

CKRecordMBS.modificationDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The time when the record was last saved to the server.

The modification date reflects the time at which a record with the current record’s ID was last saved to the server. For new instances of this class, the value of this property is initially set to nil. When you save the record to the server, the value is updated with the appropriate modification date for the record.
(Read only property)

CKRecordMBS.parent as CKReferenceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
A reference to the parent record to this record.

A parent reference is used to teach CloudKit about the hierarchy of your records. This hierarchy of records will be shared if the share reference is set on a record.

A parent record reference must have a none set.

The target of a parent reference must exist at save time — either already on the server, or part of the same CKModifyRecordsOperationMBS batch.

You are encouraged to set up the parent relationships as part of normal record saves, even if you are not planning on sharing records at this time. This allows you to share and unshare a hiearchy of records at a later date by only modifying the “top level” record, setting or clear its share reference.
(Read and Write property)

CKRecordMBS.recordChangeTag as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
A string containing the server change token for the record.

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.
(Read only property)

CKRecordMBS.recordID as CKRecordIDMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The unique ID of the record.

The ID of a new record is always set at initialization time. If you use the Constructor method to initialize the record, the ID is derived from the CKRecordIDMBS object you provide. In all other cases, the record generates a UUID and bases its ID on that value. The ID of a record never changes over the lifetime of that record.

When you save a new record object to the server, the server validates the uniqueness of the record but reports an error only if the save policy calls for it. Specifically, it reports an error when the save policy is set to ifServerRecordUnchanged, which is the default. For other save policies, the server overwrites the contents of the existing record accordingly.
(Read only property)

CKRecordMBS.recordType as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The app-defined string that identifies the type of the record.

Use this string to differentiate between different record types in your app. The string is primarily for your benefit, so choose type names that reflect the data in the corresponding records.
(Read only property)

CKRecordMBS.share as CKReferenceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
A reference to the share associated with the sharing of this record.

The share property (CKReferenceMBS) on a record will be removed when the corresponding CKShare object is deleted from the server. Send this record in the same batch as the share that is being deleted, and this record’s share property will be updated.

Sharing is only supported in zones with the CKRecordZoneCapabilitySharing capability. The default zone does not support sharing.

If any records have a parent reference to this record, they are implicitly shared alongside this record.

Note

Records in a hierarchy must only exist within one share. If a child record in a hierarchy already has a share reference set, you will get a CKErrorAlreadyShared error if you try to share any of that record’s parents.
(Read only property)

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


The biggest plugin in space...