lhunath / UbiquityStoreManager

Implements Core Data + iCloud, deals with all the nasty stuff and gives you a clean API.
http://lhunath.github.io/UbiquityStoreManager
Apache License 2.0
391 stars 37 forks source link

deleteCloudContainerLocalOnly:YES Deletes All Devices #29

Open kdbdallas opened 11 years ago

kdbdallas commented 11 years ago

I ran [self.ubiquityStoreManager deleteCloudContainerLocalOnly:YES]; on my Mac app expecting to only delete the contents of that device, however instead it deleted the contents on all devices, just as if I had specified NO instead of YES

lhunath commented 10 years ago

Can you provide USM logs of what happens when you do this?

kdbdallas commented 10 years ago

Of course. I had a work Christmas party which included an overnight stay at a fancy hotel, so I had to run after finding this, and now trying to play catch up work being a grown up :( Should be able to in a couple hours (that means I am going to loose my data again!!! NOOOO!!!)

:)

On Dec 6, 2013, at 12:43 PM, Maarten Billemont notifications@github.com wrote:

Can you provide USM logs of what happens when you do this?

— Reply to this email directly or view it on GitHub.

lhunath commented 10 years ago

well, if you do a setCloudDisabledAndOverwriteLocalWithCloudIfConfirmed: to force a migration from cloud -> local, then do a [self.ubiquityStoreManager deleteCloudContainerLocalOnly:YES]; you can always do a setCloudEnabledAndOverwriteCloudWithLocalIfConfirmed: any time later to migrate local back to cloud and re-populate if your cloud store did get emptied :-)

lhunath commented 10 years ago

... or just migrateCloudToLocal and migrateLocalToCloud.