Using a Continuous Control

A continuous control sends its action message at regular intervals as the user holds the mouse button down. For example, a continuous slider sends its action message repeatedly as the user moves the knob, and a continuous button sends its action message repeatedly as the user presses the button. If a control isn’t continuous, it sends its action message only after the user releases the mouse.

To find out or change whether a control is continuous: send isContinuous or setContinuous: to its cell. By default, sliders are continuous and other controls are not.

To find out how often a continuous control sends its action message, use the method getPeriodicDelay:interval:., which returns the following:

(In Java, use the two methods periodicDelay and interval.)

If you’re using a button, use setPeriodicDelay:interval: to change these values programmatically. If you’re using another type of control, you must subclass the control’s cell class to change them programmatically.