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

# setCursorFor(_:)

Sets the type of mouse cursor according to the type of area the mouse cursor is over.

```
func setCursorFor(_ area: PDFAreaOfInterest)
```

## Discussion

This method is especially useful for custom subclasses of the `PDFView` class.

---

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)