Instance Method

moveDocumentToUbiquityContainer:

Moves the document to the user’s iCloud storage.

Declaration

- (IBAction)moveDocumentToUbiquityContainer:(id)sender;

Parameters

sender

The control sending the message.

Discussion

AppKit calls this method automatically in response to the user selecting 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 the Document for descriptions of methods for moving a document to a local path.

See Also

Storing Documents in iCloud

usesUbiquitousStorage

Returns whether the document object stores its contents in the user's iCloud document storage.