Designate default app for file mac

broken image
broken image

When you write files and directories to iCloud document storage, the system transfers those items automatically to iCloud and to the user’s other devices. The use of file coordinators and presenters is mandatory when working with iCloud documents. In OS X v10.8 and later, documents automatically provide open/save/rename UI and functionality in iOS your app must implement these things. It does this by employing a file coordinator ( NSFileCoordinator) object and by adopting the file presenter ( NSFilePresenter) protocol.

broken image

Specifically, a document automatically ensures that local changes are safely coordinated with iCloud-originated changes. A file package, in turn, is a directory presented to the user as a single file and made accessible to your app through an NSFileWrapper object.ĭocuments automatically implement most of the behavior expected of iCloud apps. A document (based on the UIDocument class in iOS or the NSDocument class in OS X) is an assemblage of related data that can be written to disk as a single file or as a file package. Next Previous Designing for Documents in iCloudĪdopting iCloud document storage makes your app’s documents available on all of a user’s devices.