Re: core data store type and icloud
Re: core data store type and icloud
- Subject: Re: core data store type and icloud
- From: Martin Hewitson <email@hidden>
- Date: Sun, 23 Oct 2011 07:10:06 +0100
On Oct 22, 2011, at 09:18 PM, Jens Alfke wrote:
>
> On Oct 22, 2011, at 11:59 AM, Martin Hewitson wrote:
>
>> -migratePersistentStore:toURL:options:withType:error:
>> Still, the core data iCloud integration remains sufficiently mysterious...
>
> That method’s been around since 10.4; AFAIK it just does a “save as” operation to a new file. Is there some other documentation that says it works specially with iCloud?
This is not an iCloud specific thing. On the "What's New in Core Data on the Mac" video, they discuss iCloud syncing and there they say that the sqlite store should be used to allow diffs to be synced. They don't say what happens if the store is not sqlite. I just wanted to be prepared to be able to migrate from an XML store to an sqlite store, if needed. This method does that fore me.
>
> I haven’t seen anything that implies any special treatment of CoreData documents in iCloud besides just copying the entire file at once (a la Dropbox.) Did I miss something that says that iCloud will sync docs at the row/record/object level? If it does that, how does it handle sync conflicts, partial syncs, and referential integrity?
Again, this is discussed in that same video. They give an example of contact records being synced and updated from different devices, and they discuss how the conflict resolution is handled.
Again, this is all shoebox-app specific so far. I don't know if this all applies to document-based apps.
The part that stumps me is how to merge the records received from the cloud. I can't find a sample app nor any documentation.
Martin
>
> —Jens
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden