---
title: "indexOfTickMark(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsslidercell/indexoftickmark(at:)"
---

# indexOfTickMark(at:)

Returns the index of the tick mark closest to the location of the slider represented by the specified point.

## Declaration

```swift
func indexOfTickMark(at point: NSPoint) -> Int
```

## Parameters

- `point`: The point representing the slider location.

## Return Value

Return Value The index of the tick mark closest to the specified location.

## Discussion

Discussion If point is not within the bounding rectangle (plus an extra pixel of space) of any tick mark, the method returns NSNotFound. This method calls rectOfTickMark(at:) for each tick mark on the slider until it finds a tick mark containing point.

## See Also

### Managing Tick Marks

- [allowsTickMarkValuesOnly](appkit/nsslidercell/allowstickmarkvaluesonly.md)
- [closestTickMarkValue(toValue:)](appkit/nsslidercell/closesttickmarkvalue(tovalue:).md)
- [numberOfTickMarks](appkit/nsslidercell/numberoftickmarks.md)
- [rectOfTickMark(at:)](appkit/nsslidercell/rectoftickmark(at:).md)
- [tickMarkPosition](appkit/nsslidercell/tickmarkposition.md)
- [tickMarkValue(at:)](appkit/nsslidercell/tickmarkvalue(at:).md)
