Mac Developer Library

Developer

AppKit Framework Reference NSStepper Class Reference

Options
Deployment Target:

On This Page
Language:

NSStepper

A stepper consists of two small arrows that can increment and decrement a value that appears beside it, such as a date or time. The illustration below shows a stepper to the right of a text field, which would show the stepper’s value. More...

Import Statement


import AppKit @import AppKit;

Availability


Available in OS X v10.0 and later.
  • Returns the maximum value for the receiver.

    Declaration

    Swift

    var maxValue: Double

    Objective-C

    @property double maxValue

    Return Value

    The maximum value. The default is 59.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

  • Sets the maximum value for the receiver

    Declaration

    Swift

    var maxValue: Double

    Objective-C

    @property double maxValue

    Parameters

    maxValue

    The new maximum value.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

    See Also

    – maxValue

  • Returns the minimum value for the receiver.

    Declaration

    Swift

    var minValue: Double

    Objective-C

    @property double minValue

    Return Value

    The minimum value. The default is 0.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

  • Sets the minimum value for the receiver

    Declaration

    Swift

    var minValue: Double

    Objective-C

    @property double minValue

    Parameters

    minValue

    The new minimum value.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

    See Also

    – minValue

  • Returns the amount by which the receiver will change per increment (decrement).

    Declaration

    Swift

    var increment: Double

    Objective-C

    @property double increment

    Return Value

    The amount by which the receiver changes with each increment or decrement. The default is 1.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

  • Sets the amount by which the receiver will change per increment (decrement).

    Declaration

    Swift

    var increment: Double

    Objective-C

    @property double increment

    Parameters

    increment

    The amount by which the receiver changes with each decrement or increment.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

    See Also

    – increment

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

    Declaration

    Swift

    var autorepeat: Bool

    Objective-C

    @property BOOL autorepeat

    Return Value

    YEStrue if the first mouse down does one increment (or decrement) and, after a delay of 0.5 seconds, increments (or decrements) at a rate of ten times per second. NOfalse if the receiver does one increment (decrement) on a mouse up. The default is YEStrue.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

  • Sets how the receiver responds to mouse events.

    Declaration

    Swift

    var autorepeat: Bool

    Objective-C

    @property BOOL autorepeat

    Parameters

    autorepeat

    If YEStrue, the first mouse down does one increment (decrement) and, after a delay of 0.5 seconds, increments (decrements) at a rate of ten times per second. If autorepeat is NOfalse, the receiver does one increment (decrement) on a mouse up.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

    See Also

    – autorepeat

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

    Declaration

    Swift

    var valueWraps: Bool

    Objective-C

    @property BOOL valueWraps

    Return Value

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

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

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

    Declaration

    Swift

    var valueWraps: Bool

    Objective-C

    @property BOOL valueWraps

    Parameters

    valueWraps

    If YEStrue, then when incrementing or decrementing, the value wraps around to the minimum or maximum. If valueWraps is NOfalse, the value stays pinned at the minimum or maximum.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

    See Also

    – valueWraps