Platforms to show: All Mac Windows Linux Cross-Platform
NSPrinterMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
An NSPrinter object can be constructed by specifying either the printer name or the make and model of an available printer. You use a printer object to get information about printers, not to modify printer attributes or control a printing job.
- property Handle as Integer
- 16 methods
- method booleanForKey(key as string, table as string) as boolean
- method Constructor(name as string = "")
- method copy as NSPrinterMBS
- method deviceDescription as Dictionary
- method floatForKey(key as string, table as string) as Double
- method intForKey(key as string, table as string) as Integer
- method isKey(key as string, table as string) as boolean
- method languageLevel as Integer
- method name as string
- method pageSizeForPaper(paperName as string) as NSSizeMBS
- method rectForKey(key as string, table as string) as NSRectMBS
- method sizeForKey(key as string, table as string) as NSSizeMBS
- method statusForTable(paperName as string) as Integer
- method stringForKey(key as string, table as string) as string
- method stringListForKey(key as string, table as string) as string()
- method type as string
- 5 shared methods
- shared method defaultPrinter as NSPrinterMBS
- shared method printerNames as string()
- shared method printerTypes as string()
- shared method printerWithName(name as string) as NSPrinterMBS
- shared method printerWithType(type as string) as NSPrinterMBS
- 3 constants
Printer Information Table States
Constant | Value | Description |
---|---|---|
NSPrinterTableError | 2 |
Printer table is not valid. |
NSPrinterTableNotFound | 1 |
Printer table was not found. |
NSPrinterTableOK | 0 |
Printer table was found and is valid. |
This class has no sub classes.
Some methods using this class:
- NSPrintInfoMBS.defaultPrinter as NSPrinterMBS
Some properties using for this class:
- NSPrintInfoMBS.printer as NSPrinterMBS
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSPredicateMBS - NSPrintInfoMBS