Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKRecordZoneMBS class.

CKRecordZoneMBS.Constructor(zoneID as CKRecordZoneIDMBS)

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 record zone object using the specified ID.

zoneID: The ID for the new zone. This parameter must not be nil.

Returns the new custom zone, or nil if the zone cannot be created.

Use this method when you want to create a new record zone based on the information in a zone ID. After creating the zone, save it to the server using a CKModifyRecordZonesOperationMBS object or the save method of the CKDatabaseMBS class.

Do not use this method to create a CKRecordZoneMBS object corresponding to a zone that already exists in the database. If the zone exists, fetch it using a CKFetchRecordZonesOperationMBS object or the fetch method of the CKDatabaseMBS class.

See also:

CKRecordZoneMBS.Constructor(zoneName as string)

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 record zone object with the specified name.

zoneName: The name of the new zone. Zone names inside a user’s private database are unique, consist of ASCII characters, are no longer than 255 characters, and do not start with an underscore (_) character. One way to ensure the uniqueness of zone names is to create a string based on a UUID, but you can also use other techniques.

If this parameter is nil or is an empty string, the method throws an exception.

Returns the new custom zone, or nil if the zone cannot be created.

Use this method to create a new record zone. The new zone has the name you provide and the zone’s owner is set to the current user. After creating the zone, save it to the server using a CKModifyRecordZonesOperationMBS object or the saveRecordZone method of the CKDatabase class. You must save the zone to the server before attempting to save any records to that zone.

Do not use this method to create a CKRecordZone object corresponding to a zone that already exists in the database. If the zone exists, fetch it using a CKFetchRecordZonesOperationMBS object or the fetchRecordZoneWithID method of the CKDatabase class.

See also:

CKRecordZoneMBS.copy as CKRecordZoneMBS

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...