---
title: numberOfMajorTickMarks
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nslevelindicatorcell/numberofmajortickmarks
---

# numberOfMajorTickMarks

The number of major tick marks displayed by the control.

## Declaration

```swift
var numberOfMajorTickMarks: Int { get set }
```

## Discussion

Discussion The value in this property must be less than or equal to the value in the numberOfTickMarks property.

## See Also

### Managing Tick Marks

- [tickMarkPosition](appkit/nslevelindicatorcell/tickmarkposition.md)
- [numberOfTickMarks](appkit/nslevelindicatorcell/numberoftickmarks.md)
- [tickMarkValue(at:)](appkit/nslevelindicatorcell/tickmarkvalue(at:).md)
- [rectOfTickMark(at:)](appkit/nslevelindicatorcell/rectoftickmark(at:).md)
