#import <CPResponder.h>
Additional Inherited Members | |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
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.
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. Definition at line 64 of file CPResponder.j.
|
implementation |
Notifies the receiver that the mouse entered the receiver's area and that it can adapt the cursor.
anEvent | contains information about the exit |
Definition at line 201 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, and CPApplication.
Definition at line 304 of file CPResponder.j.
|
implementation |
Archives the responder to a coder.
aCoder | the coder to which the responder will be archived |
Reimplemented in CPViewController, and CPPopover.
Provided by category CPResponder(CPCoding).
Definition at line 390 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 240 of file CPResponder.j.
|
implementation |
Initializes the responder with data from a coder.
aCoder | the coder from which data will be read |
Reimplemented in CPViewController, and CPPopover.
Provided by category CPResponder(CPCoding).
Definition at line 373 of file CPResponder.j.
|
implementation |
Definition at line 286 of file CPResponder.j.
|
implementation |
Insert a line break at the caret position or selection.
aSender | the object requesting this |
Definition at line 268 of file CPResponder.j.
|
implementation |
Insert a line break at the caret position or selection.
aSender | the object requesting this |
Definition at line 277 of file CPResponder.j.
|
implementation |
Definition at line 282 of file CPResponder.j.
|
implementation |
Inserts some text at the caret position or selection.
aString | the string to insert |
Definition at line 294 of file CPResponder.j.
|
implementation |
Called to interpret a series of key events.
events | an array of key CPEvents |
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.
Definition at line 222 of file CPResponder.j.
|
implementation |
Notifies the receiver that the user has released a key.
anEvent | information about the key press |
Definition at line 231 of file CPResponder.j.
|
implementation |
Definition at line 338 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 |
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 |
Definition at line 151 of file CPResponder.j.
|
implementation |
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 |
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 |
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 |
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 357 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.
Definition at line 258 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. 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 |
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 |
Definition at line 213 of file CPResponder.j.
|
implementation |
Reimplemented in CPApplication.
Definition at line 333 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 319 of file CPResponder.j.
|
implementation |
Returns the undo manager for the receiver.
Reimplemented in CPWindow, and CPDocument.
Definition at line 347 of file CPResponder.j.