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

# knowsPageRange(_:)

Returns a Boolean value that indicates whether the view handles page boundaries.

```
func knowsPageRange(_ range: NSRangePointer) -> Bool
```

## Parameters

`range`

On return, holds the page range if <doc://com.apple.documentation/documentation/Swift/true> is returned directly. Page numbers are one-based—that is pages run from one to *N*.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the view handles page boundaries; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Returns <doc://com.apple.documentation/documentation/Swift/false> if the view uses the default auto-pagination mechanism. The default implementation returns <doc://com.apple.documentation/documentation/Swift/false>. Override this method if your class handles page boundaries.

---

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)