Using NSPersistentDocument, UIManagedDocument and iCloud

413 Views Asked by At

I currently have a CoreData based App on the App Store that supports iCloud with both iOS and OS X devices. It is a "semi-document" based app; that's to say it's technically not a document based app but it manages multiple Core Data databases.

I've done this by creating my own class that manages a list of database names (e.g. Shopping/ToDo/e.t.c) and a system of instantiating multiple NSManagedObjectContexts based on these database names, using iCloud enabled NSPersistentStoreCoordinators.

I'd like to update the App soon (i.e. version 2) and have been reading about UIManagedDocument and NSPersistentDocument but this has caught my eye:

Note: In OS X, the NSPersistentDocument class does not support iCloud.

My question is: Is it possible to subclass NSPersistentDocument or set up a system whereby CoreData, iCloud and iOS and OS X can come together in a document based app?

0

There are 0 best solutions below