Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSSharingServiceMBS class.

NSSharingServiceMBS.accountName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Social MBS MacFrameworks Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Account name used for sending on Twitter or Sina Weibo

(Read only property)

NSSharingServiceMBS.alternateImage as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The alternate image representing the sharing service. (read-only)

Available in OS X v10.8 and later.
(Read only property)

NSSharingServiceMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The internal object reference.

(Read and Write property)

NSSharingServiceMBS.image as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The primary image representing the sharing service. (read-only)

(Read only property)

NSSharingServiceMBS.menuItemTitle as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Social MBS MacFrameworks Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Title of the service in the Share menu.

Can be modified.
(Read and Write property)

NSSharingServiceMBS.messageBody as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Social MBS MacFrameworks Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Message body as string.

(Read only property)

NSSharingServiceMBS.permanentLink as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Social MBS MacFrameworks Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
URL to access the post on Facebook, Twitter, Sina Weibo, etc. (also known as permalink)

(Read only property)

NSSharingServiceMBS.subject as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Social MBS MacFrameworks Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Subject for email or text message.
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

(Read and Write property)

NSSharingServiceMBS.title as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Social MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The title of the sharing service. (read-only)
Example
// get an image
dim logo as Picture = LogoMBS(500)
Dim nsi as new NSImageMBS( logo )

// make items object
Dim nshi as new NSSharingServiceItemsMBS
nshi.AddImage nsi

// query services which are supported
Dim ssl(-1) as NSSharingServiceMBS = NSSharingServiceMBS.sharingServicesForItems( nshi )

// show services
for each s as NSSharingServiceMBS in ssl
msgBox s.title
next

(Read only property)

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


The biggest plugin in space...