•In container, but .nosync not transferred to iCloud •Removed when the account changes ▪ Rebuild store from iCloud data •Simple ▪ Guaranteed to match “ubiquitous content” ▪ No iCloud? No store
in iCloud •Store file survives account changes •One store per-iCloud account •Read-only access without account! ▪ Use NSReadOnlyPersistentStoreOption ▪ Optionally move data to fallback store Allows read-only access without account
configuration ▪ Includes only those entities •One context can access stores with different configurations (based on the same model) Model Configurations “LocalConfig” “CloudConfig”
configuration ▪ Includes only those entities •One context can access stores with different configurations (based on the same model) Model Configurations “LocalConfig” “CloudConfig”
merges across peers ▪ Use a record UUID or timestamp for (NSManagedObject *dupe in duplicates) { //choose winner if (0 == (i % batchSize)) { [moc save:&error]; } i++; } •Choose a winner -deDupe:
iCloud-enabled app (TextEdit) •Removing data ▪ Coordinated write to delete every file inside container ▪ Be patient, it might take a while to propagate to all your devices
iCloud-enabled app (TextEdit) •Removing data ▪ Coordinated write to delete every file inside container ▪ Be patient, it might take a while to propagate to all your devices •File great bugs