Instance Property

allowsTickMarkValuesOnly

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

Declaration

@property BOOL allowsTickMarkValuesOnly;

Discussion

The value of this property is YES if the slider's values are limited to those values represented by tick marks; otherwise, NO. For example, if you specify YES for a slider that has a minimum value of 0, a maximum value of 100, and five markers, the allowable values are 0, 25, 50, 75, and 100. When users move the slider’s knob, it jumps to the tick mark nearest the pointer when the mouse button is released. Setting this property has no effect if the slider has no tick marks.

See Also

Managing Tick Marks

- closestTickMarkValueToValue:

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

- indexOfTickMarkAtPoint:

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

numberOfTickMarks

The number of tick marks associated with the slider, including the tick marks assigned to the minimum and maximum values.

- rectOfTickMarkAtIndex:

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

tickMarkPosition

The position of the tick marks relative to the receiver.

- tickMarkValueAtIndex:

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