I am running into the issue of what to do when a user does a delete, for example, while offline? I was considering using an addedQueue, modifiedQueue, and deletedQueue, and persisting them using NSCoding
and NSKeyedArchiver
. Maybe I would use a Set or a Dictionary. Then I would iterate over them in the background or once every app launch, and remove from them on success. Does that sound reasonable? Does anyone have experience with this problem they can share? I've done quite a bit of searching for answers, including watching all the CloudKit WWDC talks.
I am storing all of my data locally using Core Data, so I thought about adding a property for add or modify, but it wouldn't work so well for delete.