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) | - insertNewline: [implementation] |
(void) | - cancel: [implementation] |
(void) | - insertTab: [implementation] |
(void) | - insertBackTab: [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 41 of file CPResponder.j.
- (BOOL) acceptsFirstResponder | [implementation] |
Returns YES
if the receiver is able to become the first responder. NO
otherwise.
Definition at line 51 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 61 of file CPResponder.j.
- (void) cancel: | (id) | sender | [implementation] |
Definition at line 253 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 231 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 279 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 361 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 347 of file CPResponder.j.
- (void) insertBackTab: | (id) | sender | [implementation] |
Definition at line 261 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 239 of file CPResponder.j.
- (void) insertNewline: | (id) | aSender | [implementation] |
Insert a line break at the caret position or selection.
aSender | the object requesting this |
Definition at line 248 of file CPResponder.j.
- (void) insertTab: | (id) | sender | [implementation] |
Definition at line 257 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 269 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 97 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 201 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 210 of file CPResponder.j.
- (CPMenu) menu | [implementation] |
Definition at line 313 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 141 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 151 of file CPResponder.j.
- (void) mouseEntered: | (CPEvent) | anEvent | [implementation] |
Definition at line 174 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 183 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 169 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 160 of file CPResponder.j.
- (CPResponder) nextResponder | [implementation] |
Returns the responder after the receiver.
Definition at line 88 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 332 of file CPResponder.j.
- (BOOL) performKeyEquivalent: | (CPEvent) | anEvent | [implementation] |
Definition at line 221 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 70 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 192 of file CPResponder.j.
- (void) setMenu: | (CPMenu) | aMenu | [implementation] |
Definition at line 308 of file CPResponder.j.
- (void) setNextResponder: | (CPResponder) | aResponder | [implementation] |
Sets the receiver's next responder.
aResponder | the responder after the receiver |
Definition at line 80 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 294 of file CPResponder.j.
- (CPUndoManager) undoManager | [implementation] |
Returns the undo manager for the receiver.
Definition at line 322 of file CPResponder.j.