Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSSharingServiceDelegateMBS.didFailToShareItems(service as NSSharingServiceMBS, items as NSSharingServiceItemsMBS, error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: Invoked when the sharing service encountered an error when sharing items.
Notes:
sharingService: The sharing service.
items: The items being shared.
error: The error that was encountered when trying to share the item. If the error is NSUserCancelledError, the user simply cancelled the error.

Available in OS X v10.8 and later.

Feedback, Comments & Corrections

NSSharingServiceDelegateMBS.didShareItems(service as NSSharingServiceMBS, items as NSSharingServiceItemsMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: Invoked when the sharing service has finished sharing the items.
Notes:
sharingService: The sharing service.
items: The items being shared.

Available in OS X v10.8 and later.

Feedback, Comments & Corrections

NSSharingServiceDelegateMBS.sourceFrameOnScreenForShareItem(service as NSSharingServiceMBS, item as Variant) as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: Invoked when the sharing service is performed and the sharing window is displayed, to present a transition between the original items and the sharing window.
Notes:
sharingService: The sharing service.
item: The item being shared.

Return the rectangle, in screen coordinates, to display the transition.

Feedback, Comments & Corrections

NSSharingServiceDelegateMBS.sourceWindowForShareItems(service as NSSharingServiceMBS, items as NSSharingServiceItemsMBS, scope as Integer) as NSWindowMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: Returns the window that contained the share items.
Notes:
sharingService: The sharing service.
items: The items being shared.
sharingContentScope: The sharing content scope. The sharing scope can be modified from the default value of NSSharingContentScopeItem by setting a different value in the out parameter sharingContentScope.

Return the window of the shared items.

Feedback, Comments & Corrections

NSSharingServiceDelegateMBS.transitionImageForShareItem(service as NSSharingServiceMBS, item as Variant, contentRect as NSRectMBS) as NSImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: Invoked to allow returning a custom transition image when sharing an item.
Notes:
sharingService: The sharing service.
item: The shared item.
contentRect: The content rectangle is the frame of the actual content inside the transition image, excluding all decorations. For example, if the transition image is a QuickLook thumbnail, the value would be QLThumbnailGetContentRect.

Return the image to display for the sharing transition. Its size should exactly match that of the original image.

Feedback, Comments & Corrections

NSSharingServiceDelegateMBS.willShareItems(service as NSSharingServiceMBS, items as NSSharingServiceItemsMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Social MBS MacFrameworks Plugin 12.3 Yes No No No No
Function: Invoked when the sharing service will share the specified items.
Notes:
sharingService: The sharing service.
items: The items being shared.
Available in OS X v10.8 and later.

Feedback, Comments & Corrections

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




Links
MBS FileMaker blog