Platforms to show: All Mac Windows Linux Cross-Platform
NSSharingServiceDelegateMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Social | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Available in OS X v10.8 and later.
- 10 events
- event didCompleteForItems(service as NSSharingServiceMBS, items as NSSharingServiceItemsMBS, error as NSErrorMBS)
- event didFailToShareItems(service as NSSharingServiceMBS, items as NSSharingServiceItemsMBS, error as NSErrorMBS)
- event didSaveShare(service as NSSharingServiceMBS, share as Variant)
- event didShareItems(service as NSSharingServiceMBS, items as NSSharingServiceItemsMBS)
- event didStopSharing(service as NSSharingServiceMBS, share as Variant)
- event optionsForSharingService(service as NSSharingServiceMBS, provider as Variant) as Integer
- event sourceFrameOnScreenForShareItem(service as NSSharingServiceMBS, item as Variant) as NSRectMBS
- event sourceWindowForShareItems(service as NSSharingServiceMBS, items as NSSharingServiceItemsMBS, scope as Integer) as NSWindowMBS
- event transitionImageForShareItem(service as NSSharingServiceMBS, item as Variant, contentRect as NSRectMBS) as NSImageMBS
- event willShareItems(service as NSSharingServiceMBS, items as NSSharingServiceItemsMBS)
- property Handle as Integer
- 2 methods
- method Constructor
- method Destructor
- 8 constants
Cloud Sharing Service Options
Constant | Value | Description |
---|---|---|
NSCloudKitSharingServiceAllowPrivate | 2 |
The user is allowed to share privately. |
NSCloudKitSharingServiceAllowPublic | 1 |
The user is allowed to share publicly. |
NSCloudKitSharingServiceAllowReadOnly | 16 |
The user is allowed to grant participants read-only permissions. |
NSCloudKitSharingServiceAllowReadWrite | 32 |
The user is allowed to grant participants read/write permissions. |
NSCloudKitSharingServiceStandard | 0 |
Allow the user to configure the share with the standard set of options. |
Sharing Scope Constants
Constant | Value | Description |
---|---|---|
NSSharingContentScopeFull | 2 |
Used when sharing the whole content of the current document, for example, the URL of the webpage. Available in OS X v10.8 and later. |
NSSharingContentScopeItem | 0 |
Used when sharing a clearly identified item, for example, a file represented by its icon. Available in OS X v10.8 and later. |
NSSharingContentScopePartial | 1 |
Used when sharing a portion of a more global content, for example, part of a webpage. Available in OS X v10.8 and later. |
This class has no sub classes.
Some methods using this class:
- CustomNSSharingServiceMBS.Constructor(title as string, image as NSImageMBS, alternateImage as NSImageMBS = nil, DelegateHandler as NSSharingServiceDelegateMBS = nil, tag as Variant = nil)
- NSSharingServiceMBS.SetDelegate(DelegateHandler as NSSharingServiceDelegateMBS)
Some events using this class:
- NSSharingServicePickerMBS.delegateForSharingService(service as NSSharingServiceMBS) as NSSharingServiceDelegateMBS
Some examples using this class:
Blog Entries
- News from the MBS Xojo Plugins in version 21.5
- MBS Xojo Plugins, version 21.5pr3
- MBS Xojo Plugins, version 21.5pr2
- MBS Real Studio Plugins, version 12.4pr1
Release notes
- Version 21.5
- Added new events for NSSharingServiceDelegateMBS class for cloud sharing.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
NSShadowMBS - NSSharingServiceItemsMBS