Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSPasteboardMBS class.

NSPasteboardMBS.generalPasteboard as NSPasteboardMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the general NSPasteboard object.
Example
Var p as NSPasteboardMBS = NSPasteboardMBS.generalPasteboard
MsgBox join(p.types,EndOfLine)

NSPasteboardMBS.pasteboardWithName(name as string) as NSPasteboardMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the pasteboard with the specified name.
Example
Var p as NSPasteboardMBS = NSPasteboardMBS.pasteboardWithName(NSPasteboardMBS.NSFindPboard)

// shows last find string
MsgBox p.stringForType(p.NSPasteboardTypeString)

NSPasteboardMBS.pasteboardWithUniqueName as NSPasteboardMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates and returns a new pasteboard with a name that is guaranteed to be unique with respect to other pasteboards on the computer.

This method is useful for applications that implement their own interprocess communication using pasteboards.

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


The biggest plugin in space...