Platforms to show: All Mac Windows Linux Cross-Platform
NSServiceProviderMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS MacCocoa Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This class must be subclassed to implement services.
Use ServiceInvoked as the name of the selector when declaring service (NSMessage parameter).
Use NSUserData parameter to distinguish between all the services you offer.
This class implements NSServiceProvider for Xojo and Xojo for Cocoa applications. For Carbon, please use CarbonApplicationEventsMBS events.
see also:
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/SysServices/introduction.html
- 4 events
- event readSelectionFromPasteboard(pboard as NSPasteboardMBS) as Boolean
- event ServiceInvoked(pboard as NSPasteboardMBS, userData as string, byref error as string)
- event validRequestor(sendType as String, returnType as String) as Boolean
- event writeSelectionToPasteboard(pboard as NSPasteboardMBS, types() as String) as Boolean
- property Handle as Integer
- 2 methods
- method Constructor
- method Destructor
This class has no sub classes.
Some properties using for this class:
- NSApplicationMBS.servicesProvider as NSServiceProviderMBS
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 20.6pr2
- MBS Xojo / Real Studio plug-ins in version 14.2
- MBS Xojo / Real Studio Plugins, version 14.2pr4
Release notes
- Version 21.0
- Added readSelectionFromPasteboard, validRequestor and writeSelectionToPasteboard events for NSServiceProviderMBS class.
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSSegmentedControlMBS - NSShadowMBS