Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSServiceProviderMBS class.
NSServiceProviderMBS.readSelectionFromPasteboard(pboard as NSPasteboardMBS) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa | MBS MacCocoa Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No |
pboard: The pasteboard containing the data to read.
Return true if your implementation was able to read the pasteboard data successfully; otherwise, false.
Some examples using this event:
NSServiceProviderMBS.ServiceInvoked(pboard as NSPasteboardMBS, userData as string, byref error as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa | MBS MacCocoa Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Use ServiceInvoked as the name of the selector when declaring service (NSMessage parameter).
Use NSUserData parameter to distinguish between all the services you offer.
Some examples using this event:
NSServiceProviderMBS.validRequestor(sendType as String, returnType as String) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa | MBS MacCocoa Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No |
sendType: The pasteboard type the app needs to send.
returnType: The pasteboard type the app needs to receive.
Return true if your class can send and receive the specified types or false if the receiver knows of no object that can send and receive data of that type.
Some examples using this event:
NSServiceProviderMBS.writeSelectionToPasteboard(pboard as NSPasteboardMBS, types() as String) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa | MBS MacCocoa Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No |
pboard: The pasteboard to write to.
types: An array of strings describing the types of data to write.
Return true if the data for any single type was successfully written, false otherwise.
Some examples using this event:
The items on this page are in the following plugins: MBS MacCocoa Plugin.