Public Member Functions | |
(BOOL) | - acceptsFirstResponder [implementation] |
(BOOL) | - becomeFirstResponder [implementation] |
(void) | - cancel: [implementation] |
(void) | - doCommandBySelector: [implementation] |
(void) | - encodeWithCoder: [implementation] |
(id) | - initWithCoder: [implementation] |
(void) | - insertBackTab: [implementation] |
(void) | - insertLineBreak: [implementation] |
(void) | - insertNewline: [implementation] |
(void) | - insertTab: [implementation] |
(void) | - insertText: [implementation] |
(void) | - interpretKeyEvents: [implementation] |
(void) | - keyDown: [implementation] |
(void) | - keyUp: [implementation] |
(CPMenu) | - menu [implementation] |
(void) | - mouseDown: [implementation] |
(void) | - mouseDragged: [implementation] |
(void) | - mouseEntered: [implementation] |
(void) | - mouseExited: [implementation] |
(void) | - mouseMoved: [implementation] |
(void) | - mouseUp: [implementation] |
(CPResponder) | - nextResponder [implementation] |
(void) | - noResponderFor: [implementation] |
(BOOL) | - performKeyEquivalent: [implementation] |
(BOOL) | - resignFirstResponder [implementation] |
(void) | - scrollWheel: [implementation] |
(void) | - setMenu: [implementation] |
(void) | - setNextResponder: [implementation] |
(BOOL) | - tryToPerform:with: [implementation] |
(CPUndoManager) | - undoManager [implementation] |
Subclasses of CPResonder can be part of the responder chain.
Definition at line 44 of file CPResponder.j.
- (BOOL) acceptsFirstResponder | [implementation] |
Returns YES
if the receiver is able to become the first responder. NO
otherwise.
Definition at line 54 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 64 of file CPResponder.j.
- (void) cancel: | (id) | sender | [implementation] |
Definition at line 254 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 280 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 362 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 348 of file CPResponder.j.
- (void) insertBackTab: | (id) | sender | [implementation] |
Definition at line 262 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 240 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 249 of file CPResponder.j.
- (void) insertTab: | (id) | sender | [implementation] |
Definition at line 258 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 270 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 100 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 210 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 219 of file CPResponder.j.
- (CPMenu) menu | [implementation] |
Definition at line 314 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 150 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 160 of file CPResponder.j.
- (void) mouseEntered: | (CPEvent) | anEvent | [implementation] |
Definition at line 183 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 192 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 178 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 169 of file CPResponder.j.
- (CPResponder) nextResponder | [implementation] |
Returns the responder after the receiver.
Definition at line 91 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 333 of file CPResponder.j.
- (BOOL) performKeyEquivalent: | (CPEvent) | anEvent | [implementation] |
Definition at line 230 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 73 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 201 of file CPResponder.j.
- (void) setMenu: | (CPMenu) | aMenu | [implementation] |
Definition at line 309 of file CPResponder.j.
- (void) setNextResponder: | (CPResponder) | aResponder | [implementation] |
Sets the receiver's next responder.
aResponder | the responder after the receiver |
Definition at line 83 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 295 of file CPResponder.j.
- (CPUndoManager) undoManager | [implementation] |
Returns the undo manager for the receiver.
Definition at line 323 of file CPResponder.j.