O'Reilly logo

Core Data in Swift by Marcus S. Zarra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Desktop iCloud Integration

So far in this chapter we’ve focused primarily on iOS; the reason is that the desktop implementation is actually a subset of the iOS implementation. There’s no UIManagedDocument on the desktop. As a result, we must use the traditional Core Data stack and add the options to the NSPersistentStoreCoordinator ourselves. Even if we’re using an NSPersistentDocument, we must still handle adding the options for the NSPersistentStoreCoordinator.

To build a new Core Data desktop application and implement iCloud data syncing, refer to Direct NSManagedObjectContext to iCloud for information, because the steps are identical. Further, to migrate an existing desktop application that uses a traditional Core Data stack, refer to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required