Mac OS X Reference Library Apple Developer Connection spyglass button

NSStepperCell Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in Mac OS X v10.0 and later.
Companion guide
Declared in
NSStepperCell.h

Overview

An NSStepperCell object controls the appearance and behavior of an NSStepper object.

Tasks

Specifying Value Range

Specifying How Stepper Cell Responds

Instance Methods

autorepeat

Returns a Boolean value indicating how the receiver responds to mouse events.

- (BOOL)autorepeat

Return Value

If YES, the first mouse down will do one increment (decrement), and, after a delay of 0.5 seconds, will increment (decrement) at a rate of ten times per second. If NO, the receiver will do one increment (decrement) on a mouse up. The default is YES.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h

increment

Returns the amount by which the receiver will change per increment or decrement.

- (double)increment

Return Value

The amount by which the receiver changes. The default is 1.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h

maxValue

Returns the maximum value for the receiver.

- (double)maxValue

Return Value

The maximum value. The default is 59.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h

minValue

Returns the minimum value for the receiver.

- (double)minValue

Return Value

The minimum value. The default is 0.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h

setAutorepeat:

Sets how the receiver responds to mouse events.

- (void)setAutorepeat:(BOOL)autorepeat

Parameters
autorepeat

If YES, the first mouse down will do one increment (decrement) and, after a delay of 0.5 seconds, will increment (decrement) at a rate of ten times per second. If autorepeat is NO, the receiver will do one increment (decrement) on a mouse up.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h

setIncrement:

Sets the amount by which the receiver will change per increment or decrement.

- (void)setIncrement:(double)increment

Parameters
increment

The amount by which the receiver changes.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h

setMaxValue:

Sets the maximum value for the receiver.

- (void)setMaxValue:(double)maxValue

Parameters
maxValue

The new maximum value.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h

setMinValue:

Sets the minimum value for the receiver.

- (void)setMinValue:(double)minValue

Parameters
minValue

The new minimum value.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h

setValueWraps:

Sets whether the receiver wraps around the minimum and maximum values.

- (void)setValueWraps:(BOOL)valueWraps

Parameters
valueWraps

If YES, then when incrementing or decrementing, the value will wrap around to the minimum or maximum. If valueWraps is NO, the value will stay pinned at the minimum or maximum.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h

valueWraps

Returns a Boolean value indicating whether the receiver wraps around the minimum and maximum values.

- (BOOL)valueWraps

Return Value

YES if, when incrementing or decrementing, the value wraps around to the minimum or maximum. NO if the value stays pinned at the minimum or maximum. The default is YES.

Availability
  • Available in Mac OS X v10.0 and later.
See Also
Declared In
NSStepperCell.h


Last updated: 2006-05-23

Did this document help you? Yes It's good, but... Not helpful...