Contents

closestTickMarkValue(toValue:)

Returns the value of the tick mark closest to the specified value.

Declaration

func closestTickMarkValue(toValue value: Double) -> Double

Parameters

  • value:

    The value for which to return the closest tick mark.

Return Value

The value of the tick mark closest to aValue.

Discussion

In its implementation of this method, the slider invokes the method of the same name of its NSSliderCell instance.

See Also

Managing tick marks