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 |
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 |
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 |
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.