Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSPageLayoutMBS class.
NSPageLayoutMBS.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 |
printInfo: The NSPrintInfo object to use.
win: The window to which the sheet is attached.
This method calls the printPanelDidEnd event later passing returnCode which is either NSCancelButton (0) or NSOKButton (1).
See also:
NSPageLayoutMBS.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 |
printInfo: The NSPrintInfo object to use.
win: The window to which the sheet is attached.
This method calls the printPanelDidEnd event later passing returnCode which is either NSCancelButton (0) or NSOKButton (1).
See also:
NSPageLayoutMBS.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 |
printInfo: The NSPrintInfo object to use.
win: The window to which the sheet is attached.
This method calls the printPanelDidEnd event later passing returnCode which is either NSCancelButton (0) or NSOKButton (1).
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
NSPageLayoutMBS.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 |
The NSPrintInfo object is set using the beginSheetWithPrintInfo or runModalWithPrintInfo method. The shared NSPrintInfo object is used if the receiver is run using runModal.
NSPageLayoutMBS.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 |
Returns NSCancelButton (0) if the user clicks the Cancel button; otherwise, NSOKButton (1).
The receiver's values are recorded in the shared NSPrintInfo object.
NSPageLayoutMBS.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 |
printInfo: The NSPrintInfo object to use.
Returns NSCancelButton if the user clicks the Cancel button; otherwise, NSOKButton.
The receiver's values are recorded in printInfo.
The items on this page are in the following plugins: MBS MacCocoa Plugin.