Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSPrintPanelMBS class.

NSPrintPanelMBS.beginSheetWithPrintInfo(printInfo as NSPrintInfoMBS, win as DesktopWindow)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Displays a Print panel sheet and runs it modally for the specified window.

printInfo: The printing information for the current job.
win: The window on which to display the sheet.

When the modal session ends, if printPanelDidEnd event is invoked on the object.

See also:

NSPrintPanelMBS.beginSheetWithPrintInfo(printInfo as NSPrintInfoMBS, win as NSWindowMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Displays a Print panel sheet and runs it modally for the specified window.

printInfo: The printing information for the current job.
win: The window on which to display the sheet.

When the modal session ends, if printPanelDidEnd event is invoked on the object.

See also:

NSPrintPanelMBS.beginSheetWithPrintInfo(printInfo as NSPrintInfoMBS, win as window)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Displays a Print panel sheet and runs it modally for the specified window.

printInfo: The printing information for the current job.
win: The window on which to display the sheet.

When the modal session ends, if printPanelDidEnd event is invoked on the object.

See also:

NSPrintPanelMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes a new print panel.

NSPrintPanelMBS.defaultButtonTitle as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The title of the Print panel's default button.

defaultButtonTitle: The string to use for the button title.

You can use this method to change the default button title from "Print" to something more appropriate for your usage of the panel. For example, if you are using the Print panel to save a representation of the document to a file, you might change the title to "Save".
Available in OS X v10.5 and later.
(Read and Write computed property)

NSPrintPanelMBS.helpAnchor as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The HTML help anchor for the print panel.

helpAnchor: The anchor name in your Apple Help file. This parameter should contain just the name portion of the HTML anchor element.

For information on how to insert anchors into your Apple Help files, see Authoring User Help in Apple Help Programming Guide.
Available in OS X v10.5 and later.
(Read and Write computed property)

NSPrintPanelMBS.jobStyleHint as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The type of content the Print panel is representing.

hint: For a list of supported job style hints, see Job Style Hints functions. Pass nil to this method to deactivate the simplified Print panel interface and use the standard interface instead (the equivalent of Core Printing's kPMPresetGraphicsTypeGeneral).

This method controls the set of items that appear in the Presets menu of the simplified Print panel interface.
(Read and Write computed property)

NSPrintPanelMBS.options as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The configuration options for the Print panel.

The configuration options, which you specify by adding together the appropriate constant values.
Available in OS X v10.5 and later.
(Read and Write computed property)

NSPrintPanelMBS.printInfo as NSPrintInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the printing information associated with the running Print panel.

The current printing information. May return nil if the Print panel is not currently running.
This method is a convenience method that your delegate can use to get the printing information while the Print Panel is visible.
Available in OS X v10.5 and later.

NSPrintPanelMBS.runModal as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Displays the receiver's Print panel and begins the modal loop.

NSCancelButton (0) if the user clicks the Cancel button; otherwise NSOKButton (1).
This method uses the printing information associated with the current printing operation.

NSPrintPanelMBS.runModalWithPrintInfo(printInfo as NSPrintInfoMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Displays the receiver's Print panel and runs the modal loop using the specified printing information.

printInfo: The printing information to use while displaying the Print panel.

Returns NSCancelButton (0) if the user clicks the Cancel button; otherwise NSOKButton (1).

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


The biggest plugin in space...