Contents

shouldChangePrintInfo(_:)

Returns a Boolean value that indicates whether the document allows changes to the default printing information.

Declaration

func shouldChangePrintInfo(_ newPrintInfo: NSPrintInfo) -> Bool

Parameters

  • newPrintInfo:

    The NSPrintInfo object that is the result of the user approving the page layout panel presented by Runpagelayout(_:).

Return Value

true by default; subclasses can override this method to return false.

Discussion

This method is invoked by the runPageLayout(_:) method, which sets a new NSPrintInfoobject for the document only if this method returns true.

See Also

Printing the Document