Public Member Functions | |
(BOOL) | - acceptsFirstResponder [implementation] |
(BOOL) | - becomeFirstResponder [implementation] |
(BOOL) | - resignFirstResponder [implementation] |
(void) | - setNextResponder: [implementation] |
(CPResponder) | - nextResponder [implementation] |
(void) | - interpretKeyEvents: [implementation] |
(void) | - mouseDown: [implementation] |
(void) | - mouseDragged: [implementation] |
(void) | - mouseUp: [implementation] |
(void) | - mouseMoved: [implementation] |
(void) | - mouseEntered: [implementation] |
(void) | - mouseExited: [implementation] |
(void) | - scrollWheel: [implementation] |
(void) | - keyDown: [implementation] |
(void) | - keyUp: [implementation] |
(BOOL) | - performKeyEquivalent: [implementation] |
(void) | - deleteBackward: [implementation] |
(void) | - insertLineBreak: [implementation] |
(void) | - insertText: [implementation] |
(void) | - doCommandBySelector: [implementation] |
(BOOL) | - tryToPerform:with: [implementation] |
(void) | - setMenu: [implementation] |
(CPMenu) | - menu [implementation] |
(CPUndoManager) | - undoManager [implementation] |
(void) | - noResponderFor: [implementation] |
(id) | - initWithCoder: [implementation] |
(void) | - encodeWithCoder: [implementation] |
Definition at line 37 of file CPResponder.j.
- (BOOL) acceptsFirstResponder | [implementation] |
Returns YES
if the receiver is able to become the first responder. NO
otherwise.
Definition at line 47 of file CPResponder.j.
- (BOOL) becomeFirstResponder | [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 57 of file CPResponder.j.
- (void) deleteBackward: | (id) | aSender | [implementation] |
Deletes one character backward, or the selection if anything is selected.
aSender | the object requesting this |
Definition at line 214 of file CPResponder.j.
- (void) doCommandBySelector: | (SEL) | aSelector | [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 |
Definition at line 240 of file CPResponder.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder | [implementation] |
Archives the responder to a coder.
aCoder | the coder to which the responder will be archived |
Definition at line 322 of file CPResponder.j.
- (id) initWithCoder: | (CPCoder) | aCoder | [implementation] |
Initializes the responder with data from a coder.
aCoder | the coder from which data will be read |
Definition at line 308 of file CPResponder.j.
- (void) insertLineBreak: | (id) | aSender | [implementation] |
Insert a line break at the caret position or selection.
aSender | the object requesting this |
Definition at line 222 of file CPResponder.j.
- (void) insertText: | (CPString) | aString | [implementation] |
Inserts some text at the caret position or selection.
aString | the string to insert |
Definition at line 230 of file CPResponder.j.
- (void) interpretKeyEvents: | (CPArray) | events | [implementation] |
Called to interpret a series of key events.
events | an array of key CPEvents |
Definition at line 93 of file CPResponder.j.
- (void) keyDown: | (CPEvent) | anEvent | [implementation] |
Notifies the receiver that the user has pressed a key.
anEvent | information about the key press |
Definition at line 184 of file CPResponder.j.
- (void) keyUp: | (CPEvent) | anEvent | [implementation] |
Notifies the receiver that the user has released a key.
anEvent | information about the key press |
Definition at line 193 of file CPResponder.j.
- (CPMenu) menu | [implementation] |
Definition at line 274 of file CPResponder.j.
- (void) mouseDown: | (CPEvent) | anEvent | [implementation] |
Notifies the receiver that the user has clicked the mouse down in its area.
anEvent | contains information about the click |
Definition at line 124 of file CPResponder.j.
- (void) mouseDragged: | (CPEvent) | anEvent | [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 134 of file CPResponder.j.
- (void) mouseEntered: | (CPEvent) | anEvent | [implementation] |
Definition at line 157 of file CPResponder.j.
- (void) mouseExited: | (CPEvent) | anEvent | [implementation] |
Notifies the receiver that the mouse exited the receiver's area.
anEvent | contains information about the exit |
Definition at line 166 of file CPResponder.j.
- (void) mouseMoved: | (CPEvent) | anEvent | [implementation] |
Notifies the receiver that the user has moved the mouse (with no buttons down).
anEvent | contains information about the movement |
Definition at line 152 of file CPResponder.j.
- (void) mouseUp: | (CPEvent) | anEvent | [implementation] |
Notifies the receiver that the user has released the left mouse button.
anEvent | contains information about the release |
Definition at line 143 of file CPResponder.j.
- (CPResponder) nextResponder | [implementation] |
Returns the responder after the receiver.
Definition at line 84 of file CPResponder.j.
- (void) noResponderFor: | (SEL) | anEventSelector | [implementation] |
Called when an event finds no suitable responder.
anEventSelector | the command that failed |
Definition at line 293 of file CPResponder.j.
- (BOOL) performKeyEquivalent: | (CPEvent) | anEvent | [implementation] |
Definition at line 204 of file CPResponder.j.
- (BOOL) resignFirstResponder | [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 66 of file CPResponder.j.
- (void) scrollWheel: | (CPEvent) | anEvent | [implementation] |
Notifies the receiver that the mouse scroll wheel has moved.
anEvent | information about the scroll |
Definition at line 175 of file CPResponder.j.
- (void) setMenu: | (CPMenu) | aMenu | [implementation] |
Definition at line 269 of file CPResponder.j.
- (void) setNextResponder: | (CPResponder) | aResponder | [implementation] |
Sets the receiver's next responder.
aResponder | the responder after the receiver |
Definition at line 76 of file CPResponder.j.
- (BOOL) tryToPerform: | (SEL) | aSelector | ||
with: | (id) | anObject | ||
[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. Definition at line 255 of file CPResponder.j.
- (CPUndoManager) undoManager | [implementation] |
Returns the undo manager for the receiver.
Definition at line 283 of file CPResponder.j.