Platforms to show: All Mac Windows Linux Cross-Platform

NSSharingServiceMBS.alternateImage as NSImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: The alternate image representing the sharing service. (read-only)
Notes: Available in OS X v10.8 and later.

Feedback, Comments & Corrections

NSSharingServiceMBS.canPerformWithItems(items as NSSharingServiceItemsMBS) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Social MBS MacFrameworks Plugin 12.3 Yes No No No No
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.

Feedback, Comments & Corrections

NSSharingServiceMBS.Close
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Social MBS MacFrameworks Plugin 14.2 Yes No No No No
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 Console & Web iOS
method Social MBS MacFrameworks Plugin 12.3 Yes No No No No
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 Console & Web iOS
method Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: The destructor.

Feedback, Comments & Corrections

NSSharingServiceMBS.image as NSImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: The primary image representing the sharing service. (read-only)

Feedback, Comments & Corrections

NSSharingServiceMBS.performWithItems(items as NSSharingServiceItemsMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Social MBS MacFrameworks Plugin 12.3 Yes No No No No
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.SetDelegate(DelegateHandler as NSSharingServiceDelegateMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: Specifies the delegate of the sharing service.

Feedback, Comments & Corrections

NSSharingServiceMBS.title as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: 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

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo PDF Plugins