Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSSharingServicePickerMBS class.

NSSharingServicePickerMBS.delegateForSharingService(service as NSSharingServiceMBS) as NSSharingServiceDelegateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No
Invoked to provide the delegate to the sharing service when the user has selected a service.

sharingServicePicker: The sharing service picker.
sharingService: The selected sharing service.

Return a NSSharingServiceDelegateMBS object the sharing service should use for this item's transfer.
Available in OS X v10.8 and later.

Some examples using this event:

NSSharingServicePickerMBS.didChooseSharingService(service as NSSharingServiceMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No
Invoked when the user has selected a service and before it is executed.

sharingServicePicker: The sharing service picker.
service: The sharing service the user selected. Invoked to give the delegate to the sharing service that is about to be executed.

Available in OS X v10.8 and later.

Some examples using this event:

NSSharingServicePickerMBS.sharingServicesForItems(items as NSSharingServiceItemsMBS, proposedServices() as NSSharingServiceMBS) as NSSharingServiceMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No
Invoked to allow the delegate to customize exactly what appears in the sharing service picker before it is presented.

sharingServicePicker: The sharing service picker.
items: The items to share.
proposedServices: The proposed services to share the content.

Return the sharing services to use.
If you have no code in the event, the proposedServices are returned automatically.

The delegate can reorder, remove default services or add custom services before the picker is presented. It's possible to add custom services by mutating the proposedSharingServices array and adding new NSSharingService instances.

Available in OS X v10.8 and later.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...