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

# endPage()

Writes the end of a conforming page.

```
func endPage()
```

## Discussion

This method is invoked after each page is printed. It invokes [`unlockFocus()`](/documentation/AppKit/NSView/unlockFocus()). This method also generates comments for the bounding box and page fonts, if they were specified as being at the end of the page.

---

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)