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

Example for 2 Stores #54

Open pascalfribi opened 10 years ago

pascalfribi commented 10 years ago

Hi

I am intending to use several stores in my application. They all use the same datamodel but the data I fill into these stores is completely different. All should be synced to iCloud or not, depending on the setting.

How am I supposed to do this with USM? I have tried storeName and storeConfiguration but they have no effect.

lhunath commented 10 years ago

In theory you should be able to make two UbiquityStoreManagers, each with their own store name. I have never tried using two USM instances in one application, though. "They have no effect" is rather insufficient information for me to go on.

lhunath commented 10 years ago

It really sounds like the data you're referencing belongs in the same store, though.. Also, don't you need any relations from objects from one store to objects from the other?

pascalfribi commented 10 years ago

hi

I tried to change the store name but it always seems to load the same store. I would have expected that the app comes up with a new empty store. Am I doing something wrong?

There are definitely no connections needed between the stores for my app. The data is completely separate.

Pascal Von meinem iPad gesendet

Am 13.03.2014 um 21:31 schrieb Maarten Billemont notifications@github.com:

In theory you should be able to make two UbiquityStoreManagers, each with their own store name. I have never tried using two USM instances in one application, though. "They have no effect" is rather insufficient information for me to go on.

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