#import <CPStepper.h>
Class Methods | |
(CPString) | + defaultThemeClass |
(id) | + stepper |
(id) | + stepperWithInitialValue:minValue:maxValue: |
(CPDictionary) | + themeAttributes |
Class Methods inherited from CPControl | |
(void) | + initialize |
Class Methods inherited from CPView | |
(Class) | + animatorClass |
(CAAnimation) | + defaultAnimationForKey: |
(CPMenu) | + defaultMenu |
(BOOL) | + isHighDPIDrawingEnabled |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
(void) | + setHighDPIDrawingEnabled: |
CPStepper is an implementation of Cocoa NSStepper.
This control displays a two part button that can be used to increase or decrease a value with a given interval.
Definition at line 2 of file CPStepper.h.
|
implementation |
Synthesized accessor method.
Provided by category CPStepper(CPSynthesizedAccessors).
Definition at line 367 of file CPStepper.j.
|
implementation |
Reimplemented from CPView.
Definition at line 269 of file CPStepper.j.
|
implementation |
Archives the view to a coder.
aCoder | the object into which the view's data will be archived. |
Reimplemented from CPControl.
Provided by category CPStepper(CPCoding).
Definition at line 328 of file CPStepper.j.
|
implementation |
Synthesized accessor method.
Provided by category CPStepper(CPSynthesizedAccessors).
Definition at line 375 of file CPStepper.j.
|
implementation |
Initializes the view from an archive.
aCoder | the coder from which to initialize |
Reimplemented from CPControl.
Provided by category CPStepper(CPCoding).
Definition at line 312 of file CPStepper.j.
|
implementation |
Initializes a CPStepper.
aFrame | the frame of the control |
Reimplemented from CPControl.
Definition at line 100 of file CPStepper.j.
|
implementation |
Reimplemented from CPView.
Definition at line 176 of file CPStepper.j.
|
implementation |
Synthesized accessor method.
Provided by category CPStepper(CPSynthesizedAccessors).
Definition at line 391 of file CPStepper.j.
|
implementation |
Synthesized accessor method.
Provided by category CPStepper(CPSynthesizedAccessors).
Definition at line 407 of file CPStepper.j.
|
implementation |
Perform a programatic click on down button.
aSender | sender of the action |
Definition at line 260 of file CPStepper.j.
|
implementation |
Perform a programatic click on up button.
aSender | sender of the action |
Definition at line 251 of file CPStepper.j.
|
implementation |
Set if CPStepper should autorepeat.
shouldAutoRepeat | if YES, the first mouse down does one increment (decrement) and, after each delay of 0.5 seconds |
Definition at line 205 of file CPStepper.j.
|
implementation |
Sets the control's size.
aControlSize | the control's size |
Reimplemented from CPControl.
Definition at line 141 of file CPStepper.j.
|
implementation |
Set the current value of the stepper.
aValue | a float containing the value |
Reimplemented from CPControl.
Definition at line 220 of file CPStepper.j.
|
implementation |
Set if the CPStepper is enabled or not.
shouldEnabled | BOOL that define if stepper is enabled or not. |
Reimplemented from CPControl.
Definition at line 154 of file CPStepper.j.
|
implementation |
Sets the frame size of the receiver to the dimensions and origin of the provided rectangle in the coordinate system of the superview. The method also posts a CPViewFrameDidChangeNotification to the notification center if the receiver is configured to do so. If the frame is the same as the current frame, the method simply returns (and no notification is posted).
aFrame | the rectangle specifying the new origin and size of the receiver |
Reimplemented from CPView.
Definition at line 163 of file CPStepper.j.
|
implementation |
Synthesized accessor method.
Provided by category CPStepper(CPSynthesizedAccessors).
Definition at line 383 of file CPStepper.j.
|
implementation |
Synthesized accessor method.
Provided by category CPStepper(CPSynthesizedAccessors).
Definition at line 399 of file CPStepper.j.
|
implementation |
Synthesized accessor method.
Provided by category CPStepper(CPSynthesizedAccessors).
Definition at line 415 of file CPStepper.j.
|
implementation |
Synthesized accessor method.
Provided by category CPStepper(CPSynthesizedAccessors).
Definition at line 359 of file CPStepper.j.
|
implementation |
Initializes a CPStepper with default values:
Definition at line 74 of file CPStepper.j.
|
implementation |
Initializes a CPStepper with given values.
aValue | the initial value of the CPStepper |
minValue | the minimal acceptable value of the stepper |
maxValue | the maximal acceptable value of the stepper |
Definition at line 52 of file CPStepper.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 274 of file CPStepper.j.
|
implementation |
Synthesized accessor method.
Provided by category CPStepper(CPSynthesizedAccessors).
Definition at line 351 of file CPStepper.j.