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

# hitPart

A part code indicating the manner in which the scrolling should be performed.

```
var hitPart: NSScroller.Part { get }
```

## Discussion

This method is typically invoked by an [`NSScrollView`](/documentation/AppKit/NSScrollView) object to determine how to scroll its document view when it receives an action message from the scroller.

See [`NSScroller.Part`](/documentation/AppKit/NSScroller/Part) for a list of part codes. In macOS 10.7 and later, this method no longer returns [`NSScroller.Part.incrementLine`](/documentation/AppKit/NSScroller/Part/incrementLine) or [`NSScroller.Part.decrementLine`](/documentation/AppKit/NSScroller/Part/decrementLine).

---

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)