Instance Property

tickMarkPosition

Determines how the receiver’s tick marks are aligned with it.

Declaration

var tickMarkPosition: NSSlider.TickMarkPosition { get set }

Discussion

A constant indicating the position of the tick marks. Possible values are NSTickMarkBelow, NSTickMarkAbove, NSTickMarkLeft, and NSTickMarkRight (the last two are for vertical sliders). The default alignments are NSTickMarkBelow and NSTickMarkLeft. This property has no effect if no tick marks have been assigned (that is, numberOfTickMarks returns 0). In its implementation of this property, the receiving NSSlider instance simply invokes the method of the same name of its NSSliderCell instance

See Also

Managing Tick Marks

var allowsTickMarkValuesOnly: Bool

A Boolean value that indicates whether the receiver fixes its values to those values represented by its tick marks.

func closestTickMarkValue(toValue: Double) -> Double

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

func indexOfTickMark(at: NSPoint) -> Int

Returns the index of the tick mark closest to the location of the receiver represented by the given point.

var numberOfTickMarks: Int

The number of tick marks associated with the receiver.

func rectOfTickMark(at: Int) -> NSRect

Returns the bounding rectangle of the tick mark at the given index.

func tickMarkValue(at: Int) -> Double

Returns the receiver’s value represented by the tick mark at the specified index.