Platforms to show: All Mac Windows Linux Cross-Platform

NSPasteboardMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The class for the clipboard access on Cocoa.
Example
dim p as new NSPasteboardMBS

MsgBox join(p.types,EndOfLine)

NSPasteboard objects transfer data to and from the pasteboard server. The server is shared by all running applications. It contains data that the user has cut or copied, as well as other data that one application wants to transfer to another. NSPasteboard objects are an application's sole interface to the server and to all pasteboard operations.

An NSPasteboard object is also used to transfer data between applications and service providers listed in each application's Services menu. The drag pasteboard (NSDragPboard) is used to transfer data that is being dragged by the user.

The plugin class NSPasteboardMBS does not implement all features of the NSPasteboard. If you miss something, please email us.

This class has no sub classes.

Some methods using this class:

Some events using this class:

Some examples using this class:

Blog Entries

Release notes

  • Version 21.4
    • Added SetPasteboardItems method taking array of variants to NSPasteboardMBS class.
  • Version 17.1

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


NSPasteboardItemMBS   -   NSPathComponentCellMBS


The biggest plugin in space...