Instance Method

pmPrintSettings()

Returns a Core Printing object configured with the receiver’s print settings information

Declaration

func pmPrintSettings() -> UnsafeMutableRawPointer

Return Value

A pointer to a PMPrintSettings object, an opaque data type used to store information such as the number of copies and the range of pages in a printing session. You should not call PMRelease to release the returned object, except to balance calls to PMRetain that your code also issued.

Discussion

The information in the returned PMPrintSettings object is consistent with the receiver’s print settings at the time this method is called. Subsequent changes to the receiving NSPrintInfo object do not result in changes to the information in the PMPrintSettings data type.

If you make changes to the data in the PMPrintSettings object, you should invoke the updateFromPMPrintSettings() method to synchronize those changes with the NSPrintInfo object that created the object.

See Also

Accessing Core Printing Information

var printSettings: NSMutableDictionary

A mutable dictionary containing the print settings from Core Printing.

func pmPrintSession() -> UnsafeMutableRawPointer

Returns a Core Printing object configured with the receiver’s session information.

func pmPageFormat() -> UnsafeMutableRawPointer

Returns a Core Printing object configured with the receiver’s page format information.

func updateFromPMPageFormat()

Synchronizes the receiver’s page format information with information from its associated PMPageFormat object.

func updateFromPMPrintSettings()

Synchronizes the receiver’s print settings information with information from its associated PMPrintSettings object.