<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/shouldChangePrintInfo(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDocument(im)shouldChangePrintInfo:"
  },
  "title" : "shouldChangePrintInfo(_:)"
}
-->

# shouldChangePrintInfo(_:)

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

```
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(_:)`](/documentation/AppKit/NSDocument/runPageLayout(_:)).

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> by default; subclasses can override this method to return <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This method is invoked by the [`runPageLayout(_:)`](/documentation/AppKit/NSDocument/runPageLayout(_:)) method, which sets a new `NSPrintInfo`object for the document only if this method returns <doc://com.apple.documentation/documentation/Swift/true>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)