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

# numberOfMajorTickMarks

The number of major tick marks displayed by the control.

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

## Discussion

The value in this property must be less than or equal to the value in the [`numberOfTickMarks`](/documentation/AppKit/NSLevelIndicatorCell/numberOfTickMarks) property.

---

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)