Instance Method

prepareSharingServicePicker:

Perform any custom setup associated with a sharing service picker.

Declaration

- (void)prepareSharingServicePicker:(NSSharingServicePicker *)sharingServicePicker;

Parameters

sharingServicePicker

The sharing service picker the system is about to display.

Discussion

Override this method, as needed, and use it to configure the sharing service picker before AppKit displays it. The default implementation of this method does nothing. You might customize the contents of the share menu or provide a custom delegate for the chosen sharing service. You can get the default sharing menu item by calling standardShareMenuItem on the current document controller.

See Also

Sharing the Document

allowsDocumentSharing

A Boolean value that indicates whether the document is shareable from the standard Share menu.

- shareDocumentWithSharingService:completionHandler:

Share the document's file using the specified sharing service.