Initializer

init(type:)

Creates and returns an NSPrinter object initialized to the first available printer with the specified make and model information.

Declaration

init?(type: NSPrinter.TypeName)

Parameters

type

A string describing the make and model information. You can get this string using the printerTypes method.

Return Value

An initialized NSPrinter object, or nil if the specified printer was not available.

See Also

Creating an NSPrinter

init?(name: String)

Creates and returns an NSPrinter object initialized with the specified printer name.