CPResponder Class Reference
[AppKit]

List of all members.

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]

Detailed Description

Subclasses of CPResonder can be part of the responder chain.

Definition at line 44 of file CPResponder.j.


Member Function Documentation

- (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.

Returns:
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.

Parameters:
aSelector the command to attempt

Definition at line 280 of file CPResponder.j.

- (void) encodeWithCoder: (CPCoder aCoder   [implementation]

Archives the responder to a coder.

Parameters:
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.

Parameters:
aCoder the coder from which data will be read
Returns:
the initialized responder

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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).

Parameters:
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.

Parameters:
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.

Parameters:
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.

Returns:
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.

Parameters:
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.

Parameters:
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.

Parameters:
aSelector the command to perform
anObject the argument to the method
Returns:
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.


The documentation for this class was generated from the following file:

Generated on Fri Apr 9 11:04:22 2010 for Cappuccino API by  doxygen 1.6.1