Mac Developer Library

Developer

AppKit Framework Reference NSStepperCell Class Reference

Options
Deployment Target:

On This Page
Language:

NSStepperCell

Inheritance


Conforms To


Import Statement


Swift

import AppKit

Objective-C

@import AppKit;

Availability


Available in OS X v10.0 and later.

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

  • 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

    Objective-C

    @import AppKit;

    Swift

    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

    Objective-C

    @import AppKit;

    Swift

    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

    Objective-C

    @import AppKit;

    Swift

    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

    Objective-C

    @import AppKit;

    Swift

    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 or decrement.

    Declaration

    Swift

    var increment: Double

    Objective-C

    @property double increment

    Return Value

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

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.0 and later.

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

    Declaration

    Swift

    var increment: Double

    Objective-C

    @property double increment

    Parameters

    increment

    The amount by which the receiver changes.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    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

    If YEStrue, 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 NOfalse, the receiver will do one increment (decrement) on a mouse up. The default is YEStrue.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    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 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 NOfalse, the receiver will do one increment (decrement) on a mouse up.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    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

    Objective-C

    @import AppKit;

    Swift

    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 will wrap around to the minimum or maximum. If valueWraps is NOfalse, the value will stay pinned at the minimum or maximum.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.0 and later.

    See Also

    – valueWraps