![]() |
API
0.9.6
|
#import <CPResponder.h>
Additional Inherited Members | |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(Class) | + class |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
![]() | |
Class | isa |
Subclasses of CPResonder can be part of the responder chain.
Definition at line 2 of file CPResponder.h.
|
implementation |
Returns YES
if the receiver is able to become the first responder. NO
otherwise.
Reimplemented in CPWindow, CPTableView, CPTextField, CPCollectionView, and CPBrowser.
Definition at line 54 of file CPResponder.j.
|
implementation |
Notifies the receiver that it will become the first responder. The receiver can reject first responder if it returns NO
. The default implementation always returns YES
.
YES
if the receiver accepts first responder status. Reimplemented in CPTableView, CPTextField, and CPTokenField.
Definition at line 64 of file CPResponder.j.
|
implementation |
The receiver will attempt to perform the command, if it responds to it. If not, the -nextResponder
will be called to do it.
aSelector | the command to attempt |
Reimplemented in CPWindow, CPTextField, and CPApplication.
Definition at line 292 of file CPResponder.j.
|
implementation |
Archives the responder to a coder.
aCoder | the coder to which the responder will be archived |
Reimplemented in CPTokenField, CPRadio, CPTableView, CPClipView, CPTableHeaderView, CPView, CPOutlineView, CPWebView, CPTextField, CPScrollView, CPButton, CPControl, CPSplitView, CPCollectionView, CPScroller, CPViewController, CPProgressIndicator, CPBox, CPPopover, CPSearchField, CPLevelIndicator, CPBrowser, CPTabView, CPImageView, CPComboBox, CPSegmentedControl, CPColorWell, CPSlider, CPStepper, and CPButtonBar.
Provided by category CPResponder(CPCoding).
Definition at line 378 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has pressed or released a modifier key (Shift, Control, and so on).
anEvent | information about the key press |
Definition at line 228 of file CPResponder.j.
|
implementation |
Initializes the responder with data from a coder.
aCoder | the coder from which data will be read |
Reimplemented in CPTokenField, CPRadio, CPTableView, CPClipView, CPTableHeaderView, CPView, CPOutlineView, CPWebView, CPTextField, CPScrollView, CPButton, CPControl, CPSplitView, CPCollectionView, CPScroller, CPViewController, CPProgressIndicator, CPBox, CPPopover, CPSearchField, CPLevelIndicator, CPBrowser, CPTabView, CPImageView, CPComboBox, CPSegmentedControl, CPColorWell, CPSlider, CPStepper, CPPopUpButton, and CPButtonBar.
Provided by category CPResponder(CPCoding).
Definition at line 361 of file CPResponder.j.
|
implementation |
Definition at line 274 of file CPResponder.j.
|
implementation |
Insert a line break at the caret position or selection.
aSender | the object requesting this |
Definition at line 256 of file CPResponder.j.
|
implementation |
Insert a line break at the caret position or selection.
aSender | the object requesting this |
Reimplemented in CPTextField, and CPTokenField.
Definition at line 265 of file CPResponder.j.
|
implementation |
Reimplemented in CPTokenField.
Definition at line 270 of file CPResponder.j.
|
implementation |
Inserts some text at the caret position or selection.
aString | the string to insert |
Reimplemented in CPTokenField.
Definition at line 282 of file CPResponder.j.
|
implementation |
Called to interpret a series of key events.
events | an array of key CPEvents |
Reimplemented in CPComboBox.
Definition at line 100 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has pressed a key.
anEvent | information about the key press |
Reimplemented in CPWindow, CPTableView, CPOutlineView, CPTextField, CPCollectionView, CPTokenField, and CPBrowser.
Definition at line 210 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has released a key.
anEvent | information about the key press |
Reimplemented in CPTextField, and CPTokenField.
Definition at line 219 of file CPResponder.j.
|
implementation |
Reimplemented in CPSearchField.
Definition at line 326 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has clicked the mouse down in its area.
anEvent | contains information about the click |
Reimplemented in CPTableHeaderView, CPView, CPTextField, CPButton, CPControl, CPSplitView, CPCollectionView, CPScroller, CPTokenField, CPSearchField, CPLevelIndicator, CPTabView, CPImageView, CPSegmentedControl, CPPopUpButton, and CPFlashView.
Definition at line 132 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has initiated a drag over it. A drag is a mouse movement while the left button is down.
anEvent | contains information about the drag |
Reimplemented in CPTextField, CPCollectionView, and CPFlashView.
Definition at line 151 of file CPResponder.j.
|
implementation |
Reimplemented in CPTableHeaderView, CPControl, CPSplitView, and CPScroller.
Definition at line 183 of file CPResponder.j.
|
implementation |
Notifies the receiver that the mouse exited the receiver's area.
anEvent | contains information about the exit |
Reimplemented in CPTableHeaderView, CPControl, CPSplitView, and CPScroller.
Definition at line 192 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has moved the mouse (with no buttons down).
anEvent | contains information about the movement |
Reimplemented in CPTableHeaderView, and CPSplitView.
Definition at line 178 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has released the left mouse button.
anEvent | contains information about the release |
Reimplemented in CPTextField, CPCollectionView, CPTokenField, CPSegmentedControl, and CPFlashView.
Definition at line 160 of file CPResponder.j.
|
implementation |
Returns the responder after the receiver.
Definition at line 91 of file CPResponder.j.
|
implementation |
Called when an event finds no suitable responder.
anEventSelector | the command that failed |
Definition at line 345 of file CPResponder.j.
|
implementation |
Overridden by subclasses to handle a key equivalent.
If the character code or codes in anEvent
match the receiver’s key equivalent, the receiver should respond to the event and return YES
. The default implementation does nothing and returns NO
.
You should extract the characters for a key equivalent using [anEvent charactersIgnoringModifiers].
anEvent | An event object that represents the key equivalent pressed |
YES
if theEvent is a key equivalent that the receiver handled, NO
if it is not a key equivalent that it should handle. Reimplemented in CPWindow, CPView, CPButton, and CPComboBox.
Definition at line 246 of file CPResponder.j.
|
implementation |
Notifies the receiver that it has been asked to give up first responder status.
YES
if the receiver is willing to give up first responder status. Reimplemented in CPTextField, CPTokenField, CPSearchField, and CPComboBox.
Definition at line 73 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has clicked the right mouse down in its area.
anEvent | contains information about the right click |
Reimplemented in CPView, and CPPopUpButton.
Definition at line 141 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has released the right mouse button.
anEvent | contains information about the release |
Definition at line 169 of file CPResponder.j.
|
implementation |
Notifies the receiver that the mouse scroll wheel has moved.
anEvent | information about the scroll |
Reimplemented in CPScrollView.
Definition at line 201 of file CPResponder.j.
|
implementation |
Reimplemented in CPApplication.
Definition at line 321 of file CPResponder.j.
|
implementation |
Sets the receiver's next responder.
aResponder | the responder after the receiver |
Definition at line 83 of file CPResponder.j.
|
implementation |
The receiver will attempt to perform the command, or pass it on to the next responder if it doesn't respond to it.
aSelector | the command to perform |
anObject | the argument to the method |
YES
if the receiver was able to perform the command, or a responder down the chain was able to perform the command. Reimplemented in CPApplication.
Definition at line 307 of file CPResponder.j.
|
implementation |
Returns the undo manager for the receiver.
Reimplemented in CPWindow, and CPDocument.
Definition at line 335 of file CPResponder.j.