Contents

preparePageLayout(_:)

Adds document-specific content to the Page Layout panel.

Declaration

func preparePageLayout(_ pageLayout: NSPageLayout) -> Bool

Parameters

  • pageLayout:

    The page layout panel to prepare.

Return Value

true if successfully prepared; otherwise, false.

Discussion

The runModalPageLayoutWithPrintInfo: and runModalPageLayout(with:delegate:didRun:contextInfo:) methods call this method to allow the document to customize the Page Layout panel pageLayout. You might use this method to add a document-related accessory view.

The default implementation returns true.

See Also

Printing the Document