---
title: invalidateHashMarks()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsrulerview/invalidatehashmarks()
---

# invalidateHashMarks()

Forces recalculation of the hash mark spacing for the next time the receiver is displayed.

## Declaration

```swift
func invalidateHashMarks()
```

## Discussion

Discussion You should never need to invoke this method directly, but might need to override it if you override drawHashMarksAndLabels(in:).

## See Also

### Drawing

- [drawHashMarksAndLabels(in:)](appkit/nsrulerview/drawhashmarksandlabels(in:).md)
- [drawMarkers(in:)](appkit/nsrulerview/drawmarkers(in:).md)
