Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSPrinterMBS class.
NSPrinterMBS.defaultPrinter as NSPrinterMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
NSPrinterMBS.printerNames as string()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
An array of strings, each of which contains the name of an available printer.
The user constructs the list of available printers using the Print Center application.
Some examples using this method:
NSPrinterMBS.printerTypes as string()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
An array of strings, each of which contains the make and model information for a supported printer.
NSPrinterMBS.printerWithName(name as string) as NSPrinterMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
name: The name of the printer.
Returns an initialized NSPrinter object, or nil if the specified printer was not available.
Some examples using this method:
NSPrinterMBS.printerWithType(type as string) as NSPrinterMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
type: A string describing the make and model information. You can get this string using the printerTypes method.
Returns an initialized NSPrinter object, or nil if the specified printer was not available.
The items on this page are in the following plugins: MBS MacCocoa Plugin.