---
title: hitPart
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscroller/hitpart
---

# hitPart

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

## Declaration

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

## Discussion

Discussion This method is typically invoked by an NSScrollView object to determine how to scroll its document view when it receives an action message from the scroller. See NSScroller.Part for a list of part codes. In macOS 10.7 and later, this method no longer returns NSScroller.Part.incrementLine or NSScroller.Part.decrementLine.

## See Also

### Event Handling

- [trackKnob(with:)](appkit/nsscroller/trackknob(with:).md)
- [trackScrollButtons(with:)](appkit/nsscroller/trackscrollbuttons(with:).md)
