Platforms to show: All Mac Windows Linux Cross-Platform
NSSharingServicePickerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Social | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
When a service is chosen, the picker automatically executes it, which presents the sharing window.
The events in this class allows customizing the picker's available services, where it appears, and allows assigning the delegate object for the NSSharingService delegate.
Available in OS X v10.8 and later.
- 3 events
- event delegateForSharingService(service as NSSharingServiceMBS) as NSSharingServiceDelegateMBS
- event didChooseSharingService(service as NSSharingServiceMBS)
- event sharingServicesForItems(items as NSSharingServiceItemsMBS, proposedServices() as NSSharingServiceMBS) as NSSharingServiceMBS()
- property Handle as Integer
- 3 methods
- method Constructor(items as NSSharingServiceItemsMBS)
- method Destructor
- method showRelativeToRect(r as NSRectMBS, view as NSViewMBS, preferredEdge as Integer)
- shared method Available as boolean
- 4 constants
Edge Constants
Constant | Value | Description |
---|---|---|
NSMaxXEdge | 2 |
the maximum X edge. Typically right side. |
NSMaxYEdge | 3 |
The maximum Y edge. Topically the top edge of a window. |
NSMinXEdge | 0 |
the minimum X edge. Typically left side. |
NSMinYEdge | 1 |
Minimum Y. As coordinates are upside down in the Cocoa world, this is the bottom edge of a window. |
This class has no sub classes.
Some examples using this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
NSSharingServiceMBS - NSSizeMBS