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 NSManagedObjectContext
s based on these database names, using iCloud enabled NSPersistentStoreCoordinator
s.
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?