2

Suppose a macOS application using NSPersistentDocument (thus CoreData). All user data is stored in <documentName>.<myApp> files. In 2020, if I were to develop an iOS version of the application, how could I provide the functionality to the users to sync these documents between macOS and iOS?

From my research, it looks like using CloudKit is not the way to go for a NSDocument-based app.

Thanks!

vomi
  • 993
  • 8
  • 18
  • Check this out: https://stackoverflow.com/questions/19006882/are-nspersistentdocument-and-uimanageddocument-compatible – Eugene Dudnyk Feb 11 '20 at 21:56
  • You can use `UIManagedDocument` on iOS, and on macOS some additional coordination logic will have to be implemented. Or, switch to Catalyst, and use `UIManagedDocument` everywhere. – Eugene Dudnyk Feb 11 '20 at 22:42
  • Thanks guys. Shouldn't Apple provided documentation about this? I cannot believe this use case is so exotic. – vomi Mar 02 '20 at 08:06

0 Answers0