Re: Core Data sync between iOS and Mac apps

2015-05-12 Thread Kyle Sluder
On Tue, May 12, 2015, at 10:35 AM, Jens Alfke wrote: > You can still handle conflicts using Dropbox, it’s just trickier. You’ll > need to detect the renamed version of the file that Dropbox creates — > something like “MyAppData (Jens Alfke's conflicted copy 2015-05-09).db” — > then open both files

Re: Core Data sync between iOS and Mac apps

2015-05-12 Thread Jens Alfke
> On May 12, 2015, at 6:00 AM, davel...@mac.com wrote: > > I’m not sure I understand your concerns about Dropbox. The app is single user > so when the iOS enters the background, I can upload the data (if there’s a > network connection at the moment) for modified files to Dropbox. A single-user

Re: Core Data sync between iOS and Mac apps

2015-05-12 Thread davelist
CloudKit does seem to be Apple’s answer going forward (which makes me suspect Core Data sync will not improve) but CloudKit requires internet access for the app to work at all which I don’t want to require. I’m not sure I understand your concerns about Dropbox. The app is single user so when t

Re: Core Data sync between iOS and Mac apps

2015-05-10 Thread Jens Alfke
> On May 10, 2015, at 6:16 AM, davel...@mac.com wrote: > > Also thanks to Jens Alfke for his reply about Couchbase Lite > (http://www.couchbase.com/nosql-databases/couchbase-mobile). I may look into > it but after skimming the site, I couldn't tell exactly what I would need > (i.e., would I ne

Re: Core Data sync between iOS and Mac apps

2015-05-10 Thread Alex Kac
I would try CloudKit. Its super simple and far simpler than using Dropbox. Plus using Dropbox you end up with lots of issues going forward that you don't want to mess with. Different database versions, data that is not written to disk when you make the copy due to disk caches, and a lot more. Clou

Re: Core Data sync between iOS and Mac apps

2015-05-10 Thread davelist
Thanks MIchael. That's what I was afraid of (i.e., that Apple doesn't make this straightforward). I first looked at BSManagedDocument 2-3 years ago but never got around to trying it for my original app as I kept hoping Apple would have an official solution to this problem. Also thanks to Jens

Re: Core Data sync between iOS and Mac apps

2015-05-07 Thread Sean McBride
On Thu, 7 May 2015 10:57:05 -0400, Michael Swan said: >On OS X NSPersistentDocument can only make flat files, not packages like >UIManagedDocument (I've filed a bug about there being no counterpart to >UIManagedDocument for OS X, been open for over a year now…). Only a year? Mine's been open for

Re: Core Data sync between iOS and Mac apps

2015-05-07 Thread Michael Swan
Dave, Unfortunately on the OS X side with iCloud, Core Data, and documents it is pretty much a pick any two situation. The iOS side can be done but there are some gotchas not really covered in the documentation. I've actually just started work on my own custom subclasses of UIManagedDocument and

Re: Core Data sync between iOS and Mac apps

2015-05-05 Thread Jens Alfke
> On May 5, 2015, at 2:31 PM, davel...@mac.com wrote: > > I'm looking into options for building an iOS and Mac app that can sync/share > Core Data between them. I'm well aware of the issues with Core Data iCloud > syncing in iOS 5 and 6 and that it is supposedly better so I'm willing to try >