Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKReferenceMBS class.

CKReferenceMBS.Constructor   Private

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

See also:

CKReferenceMBS.Constructor(record as CKRecordMBS, action as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes and returns a reference object that points to the specified record object.

record: The target record of the reference.
action: The ownership options to put in place for the records. If you specify the deleteSelf option, the object referred to by the recordID parameter becomes the owner of any objects that use this reference object. For a list of possible values, see CKReferenceAction.

Returns an initialized reference object that points to the specified record, or nil if the reference cannot be initialized.

Use this method to initialize a reference to a local record object. The local record can be one that you just created or one that you fetched previously from the server.

When you create a reference object for use in a search predicate, the predicate ignores the value in the action parameter. Search predicates use only the ID of the record during their comparison.

See also:

CKReferenceMBS.Constructor(recordID as CKRecordIDMBS, action as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes and returns a reference object that points to the record with the specified ID.

recordID: The ID of the target record. This method throws an exception if you specify nil for this parameter.
action: The ownership option to put in place between the target record and any records that incorporate this reference object. If you specify the deleteSelf option, the record referred to by the recordID parameter owns (or acts as the parent) of any objects that use this reference object. For a list of possible values, see CKReferenceActionMBS.

Returns an initialized reference object that points to the specified record, or nil if the reference cannot be initialized.

Use this method when you have only the ID of the record that is to become the target of a link. You might use this method if you saved only the ID of the record to a local data cache.

When you create a reference object for use in a search predicate, the predicate ignores the value in the action parameter. Search predicates use only the ID of the record during their comparison.

See also:

CKReferenceMBS.copy as CKReferenceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of this object.

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


The biggest plugin in space...