Contents

sharingServicePicker(_:delegateFor:)

Asks your delegate to provide an object that the selected sharing service can use as its delegate.

Declaration

optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?

Parameters

  • sharingServicePicker:

    The sharing service picker.

  • sharingService:

    The selected sharing service.

Return Value

An object that adopts the NSSharingServiceDelegate protocol.

Discussion

The sharing service assigns the returned object to its delegate property.

See Also

Customizing Behavior