event.conflicts

Type Table
Event iCloudDocEvent
Revision Release 2024.3703
Keywords iCloud, sync, storage, iCloudDocEvent, conflicts
See also iCloudDocEvent
iCloud.*

Overview

If there are document conflicts gathered from iCloud.docConflicts(), this table will contain an entry (table) for each conflict. Each instance will contain the following properties:

Resolving Conflicts

Conflicts should be resolved. Here is an example workflow:

  1. Merge the data automatically or ask the user to choose which version to keep. iCloud.docConflictData() can be used to retrieve conflict data.

  2. Write the proper version to the file with iCloud.docWrite().

  3. Resolve and delete conflicted versions with iCloud.docResolve().