Instance Method


Moves the document into the user’s iCloud storage in response to the user choosing the Move to iCloud… menu item.


@IBAction func moveToUbiquityContainer(_ sender: Any?)



The control sending the message.


This is the action method of the Move to iCloud… menu item in a document-based app. The default implementation presents the user with an alert asking to confirm the move before invoking the move(to:completionHandler:) method with a URL in the app’s default ubiquity container.

See Moving Documents for descriptions of methods for moving a document to a local path.

See Also

iCloud Document Storage

class var usesUbiquitousStorage: Bool

Returns whether your NSDocument subclass allows the use of iCloud document storage.