Contents

PMPrinterGetLocation(_:)

Returns the location of a printer.

Declaration

func PMPrinterGetLocation(_ printer: PMPrinter) -> Unmanaged<CFString>?

Parameters

  • printer:

    The printer whose location you want to obtain.

Return Value

The location of the specified printer. You should not release the string without first retaining it. If the printer is not valid, this function returns NULL.

Discussion

The location of a printer is specified when a user creates a print queue for the printer. In some cases, the printing system automatically determines the location. For example, the location may be set to “Local Zone”. The user creating the print queue can also set the location.

See Also

Accessing Information About a Printer