Platforms to show: All Mac Windows Linux Cross-Platform

NSSharingServiceMBS.attachmentFileURLs as String()
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS MacFrameworks Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: Array of file URLs representing the files that were shared.

Feedback, Comments & Corrections

NSSharingServiceMBS.canPerformWithItems(items as NSSharingServiceItemsMBS) as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: Returns whether the service can share all the specified items.
Notes:
items: The items to share.

Return true if the service can share all the items; false otherwise. If items is nil, the method will return true when the service is configured.

This method can be used to validate a custom user interface such as a dedicated Twitter button. Therefore you could call it once at launch time with nil items to check whether to display the button or not, and then with real items to enable and disable the button depending on the context or selection.

Available in OS X v10.8 and later.

Some examples using this method:

Feedback, Comments & Corrections

NSSharingServiceMBS.Close
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: Closes the sharing services.
Notes: Same as destructor, but closes now, not later.

Feedback, Comments & Corrections

NSSharingServiceMBS.Constructor(name as string)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: Create a sharing service instance representing the specified service name.
Notes: name: The service name. See NSSharingServiceName* methods.

Feedback, Comments & Corrections

NSSharingServiceMBS.Destructor
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: The destructor.

Feedback, Comments & Corrections

NSSharingServiceMBS.performWithItems(items as NSSharingServiceItemsMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: Manually performs the service on the provided items.
Notes:
items: The items to share.

In most cases this will display a sharing window.
Available in OS X v10.8 and later.

Feedback, Comments & Corrections

NSSharingServiceMBS.recipients as String()
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS MacFrameworks Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: The list of recipients.

Feedback, Comments & Corrections

NSSharingServiceMBS.SetDelegate(DelegateHandler as NSSharingServiceDelegateMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: Specifies the delegate of the sharing service.

Feedback, Comments & Corrections

NSSharingServiceMBS.setRecipients(recipients() as String)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS MacFrameworks Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: Sets the list of recipients.
Example:
// compose email
Dim items As New NSSharingServiceItemsMBS

// styled text from text area control
Dim tv As NSTextViewMBS = TextArea1.NSTextViewMBS
items.AddAttributedString tv.textStorage

// find service
Dim service As New NSSharingServiceMBS("com.apple.share.Mail.compose")

service.subject = "Test Email"
service.setRecipients Array("test@test.test")

service.performWithItems items
Notes: List of emails for sending an email message.

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo Chart Plugins

Start Chat