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
dim p as NSPasteboardMBS = NSPasteboardMBS.generalPasteboard
MsgBox join(p.types,EndOfLine)

NSPasteboardMBS.NSColorPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

NSColor data.
On Mac OS X v10.6 and later, use NSPasteboardTypeColor (and you read and write colors directly to and from the pasteboard).

NSPasteboardMBS.NSDragPboard as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the names for pasteboards.
Example
dim p as new NSPasteboardMBS(NSPasteboardMBS.NSDragPboard)
MsgBox p.name

The pasteboard that stores data to be moved as the result of a drag operation.
For additional information on working with the drag pasteboard, see Drag and Drop Programming Topics for Cocoa.

Some examples using this method:

NSPasteboardMBS.NSFilesPromisePboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

Promised files.
On Mac OS X v10.6 and later, use kPasteboardTypeFileURLPromise instead.
For information on promised files, see Dragging Files in Drag and Drop Programming Topics for Cocoa.

NSPasteboardMBS.NSFindPboard as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the names for pasteboards.
Example
dim p as new NSPasteboardMBS(NSPasteboardMBS.NSFindPboard)
MsgBox p.name

The pasteboard that holds information about the current state of the active application's find panel.
This information permits users to enter a search string into the find panel, then switch to another application to conduct another search.

NSPasteboardMBS.NSFontPboard as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the names for pasteboards.
Example
dim p as new NSPasteboardMBS(NSPasteboardMBS.NSFontPboard)
MsgBox p.name

The pasteboard that holds font and character information and supports Copy Font and Paste Font commands that may be implemented in a text editor.

NSPasteboardMBS.NSFontPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

Font and character information.
On Mac OS X v10.6 and later, use NSPasteboardTypeFont instead.

NSPasteboardMBS.NSGeneralPboard as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the names for pasteboards.
Example
dim p as new NSPasteboardMBS(NSPasteboardMBS.NSGeneralPboard)
MsgBox p.name

The pasteboard that's used for ordinary cut, copy, and paste operations.
This pasteboard holds the contents of the last selection that's been cut or copied.

NSPasteboardMBS.NSHTMLPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

HTML (which an NSTextView object can read from, but not write to).
On Mac OS X v10.6 and later, use NSPasteboardTypeHTML instead.

NSPasteboardMBS.NSInkTextPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

Ink text data.
On Mac OS X v10.6 and later, use kUTTypeInkText instead.
For information on ink text objects, see Using Ink Services in Your Application.

NSPasteboardMBS.NSMultipleTextSelectionPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

Multiple text selection.
On Mac OS X v10.6 and later, use NSPasteboardTypeMultipleTextSelection instead.
Available in Mac OS X v10.5 and later.

NSPasteboardMBS.NSPasteboardTypeColor as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

Color data (an NSColor object).
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeFindPanelSearchOptions as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

Type for the Find panel metadata property list.
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeFont as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

Font and character information.
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeHTML as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

HTML data.
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeMultipleTextSelection as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

Multiple text selection.
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypePDF as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

PDF data.
Available in Mac OS X v10.6 and later.

Some examples using this method:

NSPasteboardMBS.NSPasteboardTypePNG as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

PNG image data.
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeRTF as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

Rich Text Format (RTF) data.
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeRTFD as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

RTFD formatted file contents.
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeRuler as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

Paragraph formatting information.
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeSound as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

Sound data (an NSSound object).
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeTabularText as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

A string containing tab-separated fields of text.
Available in Mac OS X v10.6 and later.

NSPasteboardMBS.NSPasteboardTypeTIFF as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the constants for defining UTIs for common pasteboard data types.

Tag Image File Format (TIFF) data.
Available in Mac OS X v10.6 and later.

Some examples using this method:

NSPasteboardMBS.NSPDFPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

PDF data.
On Mac OS X v10.6 and later, use NSPasteboardTypePDF instead.

NSPasteboardMBS.NSPICTPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

QuickDraw picture data.
The PICT format was formally deprecated in Mac OS X v10.4 along with QuickDraw. You should not be explicitly providing or looking for PICT data on the pasteboard.
To aid in this deprecation, if PICT is the only image type on the pasteboard, as is sometimes the case when copying images from 32-bit Carbon applications, a translated image type will be automatically reported and provided by NSPasteboard. The translated type is added to the types array ahead of PICT so that the deprecated PICT format is not the preferred format. In addition, when an application provides image data to NSPasteboard, the Carbon Pasteboard Manager will automatically make a PICT translation available to 32-bit Carbon applications.
Although NSPICTPboardType, and its UTI equivalent kUTTypePICT, will appear in a pasteboard's type array retrieved from the existing NSPasteboard API, it may cease to be reported in future releases.

NSPasteboardMBS.NSPostScriptPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

Encapsulated PostScript (EPS) code.
On Mac OS X v10.6 and later, use @"com.adobe.encapsulated-postscript" instead.

NSPasteboardMBS.NSRTFDPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

RTFD formatted file contents.
On Mac OS X v10.6 and later, use NSPasteboardTypeRTFD instead.

NSPasteboardMBS.NSRTFPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

Rich Text Format (RTF) data.
On Mac OS X v10.6 and later, use NSPasteboardTypeRTF instead.

NSPasteboardMBS.NSRulerPboard as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the names for pasteboards.
Example
dim p as new NSPasteboardMBS(NSPasteboardMBS.NSRulerPboard)
MsgBox p.name

The pasteboard that holds information about paragraph formats in support of the Copy Ruler and Paste Ruler commands that may be implemented in a text editor.

NSPasteboardMBS.NSRulerPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

Paragraph formatting information.
On Mac OS X v10.6 and later, use NSPasteboardTypeRuler instead.

NSPasteboardMBS.NSTabularTextPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

A string containing tab-separated fields of text.
On Mac OS X v10.6 and later, use NSPasteboardTypeTabularText instead.

NSPasteboardMBS.NSTIFFPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

Tag Image File Format (TIFF) data.
On Mac OS X v10.6 and later, use NSPasteboardTypeTIFF instead.

NSPasteboardMBS.NSURLPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

NSURL data for one file or resource.
On Mac OS X v10.6 and later, use writeObjects: to write URLs directly to the pasteboard instead.
On Mac OS X v10.5 and earlier: to write an URL to a pasteboard you use writeToPasteboard: (NSURL); to get an URL from a pasteboard you use URLFromPasteboard: (NSURL).

Some examples using this method:

NSPasteboardMBS.NSVCardPboardType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Clipboard MBS MacBase Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the common pasteboard data types.

VCard data.
On Mac OS X v10.6 and later, use kUTTypeVCard instead.

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
dim 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...