Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for 2 Stores #54

Open
pascalfribi opened this issue Feb 17, 2014 · 3 comments
Open

Example for 2 Stores #54

pascalfribi opened this issue Feb 17, 2014 · 3 comments

Comments

@pascalfribi
Copy link

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
Copy link
Owner

lhunath commented Mar 13, 2014

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
Copy link
Owner

lhunath commented Mar 13, 2014

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
Copy link
Author

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 [email protected]:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants