Instance Method

moveDocumentToUbiquityContainer:

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

Declaration

- (IBAction)moveDocumentToUbiquityContainer:(id)sender;

Parameters

sender

The control sending the message.

Discussion

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 moveToURL: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

usesUbiquitousStorage

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