Up

# NSResponder

### Authors

Scott Christley (`scottc@net-community.com`)

> Abstract class which is basis of command and event processing

Copyright: (C) 1996,1999 Free Software Foundation, Inc.

### Contents -

1. Software documentation for the NSResponder class
2. Software documentation for the NSResponder(OptionalActionMethods) category

# Software documentation for the NSResponder class

## NSResponder : NSObject

> Declared in:
>   AppKit/NSResponder.h

> Conforms to:
>   NSCoding

> Standards:
> - MacOS-X
> - OpenStep
> - GNUstep

Description forthcoming.

### Instance variables

### _rFlags

@public struct _rFlagsType _rFlags;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

Method summary

- -capitalizeWord:
- -centerSelectionInVisibleArea:
- -changeCaseOfLetter:
- -complete:
- -deleteBackward:
- -deleteForward:
- -deleteToBeginningOfLine:
- -deleteToBeginningOfParagraph:
- -deleteToEndOfLine:
- -deleteToEndOfParagraph:
- -deleteToMark:
- -deleteWordBackward:
- -deleteWordForward:
- -indent:
- -insertBacktab:
- -insertNewline:
- -insertNewlineIgnoringFieldEditor:
- -insertParagraphSeparator:
- -insertTab:
- -insertTabIgnoringFieldEditor:
- -lowercaseWord:
- -moveBackward:
- -moveBackwardAndModifySelection:
- -moveDown:
- -moveDownAndModifySelection:
- -moveForward:
- -moveForwardAndModifySelection:
- -moveLeft:
- -moveRight:
- -moveToBeginningOfDocument:
- -moveToBeginningOfLine:
- -moveToBeginningOfParagraph:
- -moveToEndOfDocument:
- -moveToEndOfLine:
- -moveToEndOfParagraph:
- -moveUp:
- -moveUpAndModifySelection:
- -moveWordBackward:
- -moveWordBackwardAndModifySelection:
- -moveWordForward:
- -moveWordForwardAndModifySelection:
- -pageDown:
- -pageUp:
- -scrollLineDown:
- -scrollLineUp:
- -scrollPageDown:
- -scrollPageUp:
- -selectAll:
- -selectLine:
- -selectParagraph:
- -selectToMark:
- -selectWord:
- -showContextHelp:
- -swapWithMark:
- -transpose:
- -transposeWords:
- -uppercaseWord:
- -yank:
- -acceptsFirstResponder
- -becomeFirstResponder
- -doCommandBySelector:
- -encodeWithCoder:
- -flagsChanged:
- -flushBufferedKeyEvents
- -helpRequested:
- -initWithCoder:
- -insertText:
- -interfaceStyle
- -interpretKeyEvents:
- -keyDown:
- -keyUp:
- -menu
- -mouseDown:
- -mouseDragged:
- -mouseEntered:
- -mouseExited:
- -mouseMoved:
- -mouseUp:
- -nextResponder
- -noResponderFor:
- -otherMouseDown:
- -otherMouseDragged:
- -otherMouseUp:
- -performKeyEquivalent:
- -performMnemonic:
- -resignFirstResponder
- -rightMouseDown:
- -rightMouseDragged:
- -rightMouseUp:
- -scrollWheel:
- -setInterfaceStyle:
- -setMenu:
- -setNextResponder:
- -tryToPerform:with:
- -undoManager
- -validRequestorForSendType:returnType:

### acceptsFirstResponder

- (BOOL) acceptsFirstResponder;

Returns `YES` if the receiver is able to become the first responder, `NO` otherwise.

### becomeFirstResponder

- (BOOL) becomeFirstResponder;

Description forthcoming.

### doCommandBySelector:

- (void) doCommandBySelector: (SEL)aSelector;

Description forthcoming.

### encodeWithCoder:

- (void) encodeWithCoder: (NSCoder*)aCoder;

Description forthcoming.

### flagsChanged:

- (void) flagsChanged: (NSEvent*)theEvent;

Description forthcoming.

### flushBufferedKeyEvents

- (void) flushBufferedKeyEvents;

Description forthcoming.

### helpRequested:

- (void) helpRequested: (NSEvent*)theEvent;

Description forthcoming.

### initWithCoder:

- (id) initWithCoder: (NSCoder*)aDecoder;

Description forthcoming.

### insertText:

- (void) insertText: (NSString*)aString;

Description forthcoming.

### interfaceStyle

- (NSInterfaceStyle) interfaceStyle;

Description forthcoming.

### interpretKeyEvents:

- (void) interpretKeyEvents: (NSArray*)eventArray;

Description forthcoming.

### keyDown:

- (void) keyDown: (NSEvent*)theEvent;

Description forthcoming.

### keyUp:

- (void) keyUp: (NSEvent*)theEvent;

Description forthcoming.

### menu

- (NSMenu*) menu;

Description forthcoming.

### mouseDown:

- (void) mouseDown: (NSEvent*)theEvent;

Description forthcoming.

### mouseDragged:

- (void) mouseDragged: (NSEvent*)theEvent;

Description forthcoming.

### mouseEntered:

- (void) mouseEntered: (NSEvent*)theEvent;

Description forthcoming.

### mouseExited:

- (void) mouseExited: (NSEvent*)theEvent;

Description forthcoming.

### mouseMoved:

- (void) mouseMoved: (NSEvent*)theEvent;

Description forthcoming.

### mouseUp:

- (void) mouseUp: (NSEvent*)theEvent;

Description forthcoming.

### nextResponder

- (NSResponder*) nextResponder;

Description forthcoming.

### noResponderFor:

- (void) noResponderFor: (SEL)eventSelector;

Description forthcoming.

### otherMouseDown:

- (void) otherMouseDown: (NSEvent*)theEvent;

Description forthcoming.

### otherMouseDragged:

- (void) otherMouseDragged: (NSEvent*)theEvent;

Description forthcoming.

### otherMouseUp:

- (void) otherMouseUp: (NSEvent*)theEvent;

Description forthcoming.

### performKeyEquivalent:

- (BOOL) performKeyEquivalent: (NSEvent*)theEvent;

Description forthcoming.

### performMnemonic:

- (BOOL) performMnemonic: (NSString*)aString;

Description forthcoming.

### resignFirstResponder

- (BOOL) resignFirstResponder;

Description forthcoming.

### rightMouseDown:

- (void) rightMouseDown: (NSEvent*)theEvent;

Description forthcoming.

### rightMouseDragged:

- (void) rightMouseDragged: (NSEvent*)theEvent;

Description forthcoming.

### rightMouseUp:

- (void) rightMouseUp: (NSEvent*)theEvent;

Description forthcoming.

### scrollWheel:

- (void) scrollWheel: (NSEvent*)theEvent;

Description forthcoming.

### setInterfaceStyle:

- (void) setInterfaceStyle: (NSInterfaceStyle)aStyle;

Description forthcoming.

### setMenu:

- (void) setMenu: (NSMenu*)aMenu;

Description forthcoming.

### setNextResponder:

- (void) setNextResponder: (NSResponder*)aResponder;

Description forthcoming.

### tryToPerform:with:

- (BOOL) tryToPerform: (SEL)anAction with: (id)anObject;

If the receiver responds to anAction, it performs that method with anObject as its argument, discards any return value, and return `YES`.
Otherwise, the next responder in the chain is asked to perform anAction and the result of that is returned.
If no responder in the chain is able to respond to anAction, then `NO` is returned.

### undoManager

- (NSUndoManager*) undoManager;

Description forthcoming.

### validRequestorForSendType:returnType:

- (id) validRequestorForSendType: (NSString*)typeSent returnType: (NSString*)typeReturned;

Description forthcoming.

# Software documentation for the NSResponder(OptionalActionMethods) category

## NSResponder(OptionalActionMethods)

> Declared in:
>   AppKit/NSResponder.h

> Standards:
> - MacOS-X
> - NotOpenStep
> - GNUstep

Description forthcoming.

Method summary

- -capitalizeWord:
- -centerSelectionInVisibleArea:
- -changeCaseOfLetter:
- -complete:
- -deleteBackward:
- -deleteForward:
- -deleteToBeginningOfLine:
- -deleteToBeginningOfParagraph:
- -deleteToEndOfLine:
- -deleteToEndOfParagraph:
- -deleteToMark:
- -deleteWordBackward:
- -deleteWordForward:
- -indent:
- -insertBacktab:
- -insertNewline:
- -insertNewlineIgnoringFieldEditor:
- -insertParagraphSeparator:
- -insertTab:
- -insertTabIgnoringFieldEditor:
- -lowercaseWord:
- -moveBackward:
- -moveBackwardAndModifySelection:
- -moveDown:
- -moveDownAndModifySelection:
- -moveForward:
- -moveForwardAndModifySelection:
- -moveLeft:
- -moveRight:
- -moveToBeginningOfDocument:
- -moveToBeginningOfLine:
- -moveToBeginningOfParagraph:
- -moveToEndOfDocument:
- -moveToEndOfLine:
- -moveToEndOfParagraph:
- -moveUp:
- -moveUpAndModifySelection:
- -moveWordBackward:
- -moveWordBackwardAndModifySelection:
- -moveWordForward:
- -moveWordForwardAndModifySelection:
- -pageDown:
- -pageUp:
- -scrollLineDown:
- -scrollLineUp:
- -scrollPageDown:
- -scrollPageUp:
- -selectAll:
- -selectLine:
- -selectParagraph:
- -selectToMark:
- -selectWord:
- -showContextHelp:
- -swapWithMark:
- -transpose:
- -transposeWords:
- -uppercaseWord:
- -yank:

### capitalizeWord:

- (void) capitalizeWord: (id)sender;

Description forthcoming.

### centerSelectionInVisibleArea:

- (void) centerSelectionInVisibleArea: (id)sender;

Description forthcoming.

### changeCaseOfLetter:

- (void) changeCaseOfLetter: (id)sender;

Description forthcoming.

### complete:

- (void) complete: (id)sender;

Description forthcoming.

### deleteBackward:

- (void) deleteBackward: (id)sender;

Description forthcoming.

### deleteForward:

- (void) deleteForward: (id)sender;

Description forthcoming.

### deleteToBeginningOfLine:

- (void) deleteToBeginningOfLine: (id)sender;

Description forthcoming.

### deleteToBeginningOfParagraph:

- (void) deleteToBeginningOfParagraph: (id)sender;

Description forthcoming.

### deleteToEndOfLine:

- (void) deleteToEndOfLine: (id)sender;

Description forthcoming.

### deleteToEndOfParagraph:

- (void) deleteToEndOfParagraph: (id)sender;

Description forthcoming.

### deleteToMark:

- (void) deleteToMark: (id)sender;

Description forthcoming.

### deleteWordBackward:

- (void) deleteWordBackward: (id)sender;

Description forthcoming.

### deleteWordForward:

- (void) deleteWordForward: (id)sender;

Description forthcoming.

### indent:

- (void) indent: (id)sender;

Description forthcoming.

### insertBacktab:

- (void) insertBacktab: (id)sender;

Description forthcoming.

### insertNewline:

- (void) insertNewline: (id)sender;

Description forthcoming.

### insertNewlineIgnoringFieldEditor:

- (void) insertNewlineIgnoringFieldEditor: (id)sender;

Description forthcoming.

### insertParagraphSeparator:

- (void) insertParagraphSeparator: (id)sender;

Description forthcoming.

### insertTab:

- (void) insertTab: (id)sender;

Description forthcoming.

### insertTabIgnoringFieldEditor:

- (void) insertTabIgnoringFieldEditor: (id)sender;

Description forthcoming.

### lowercaseWord:

- (void) lowercaseWord: (id)sender;

Description forthcoming.

### moveBackward:

- (void) moveBackward: (id)sender;

Description forthcoming.

### moveBackwardAndModifySelection:

- (void) moveBackwardAndModifySelection: (id)sender;

Description forthcoming.

### moveDown:

- (void) moveDown: (id)sender;

Description forthcoming.

### moveDownAndModifySelection:

- (void) moveDownAndModifySelection: (id)sender;

Description forthcoming.

### moveForward:

- (void) moveForward: (id)sender;

Description forthcoming.

### moveForwardAndModifySelection:

- (void) moveForwardAndModifySelection: (id)sender;

Description forthcoming.

### moveLeft:

- (void) moveLeft: (id)sender;

Description forthcoming.

### moveRight:

- (void) moveRight: (id)sender;

Description forthcoming.

### moveToBeginningOfDocument:

- (void) moveToBeginningOfDocument: (id)sender;

Description forthcoming.

### moveToBeginningOfLine:

- (void) moveToBeginningOfLine: (id)sender;

Description forthcoming.

### moveToBeginningOfParagraph:

- (void) moveToBeginningOfParagraph: (id)sender;

Description forthcoming.

### moveToEndOfDocument:

- (void) moveToEndOfDocument: (id)sender;

Description forthcoming.

### moveToEndOfLine:

- (void) moveToEndOfLine: (id)sender;

Description forthcoming.

### moveToEndOfParagraph:

- (void) moveToEndOfParagraph: (id)sender;

Description forthcoming.

### moveUp:

- (void) moveUp: (id)sender;

Description forthcoming.

### moveUpAndModifySelection:

- (void) moveUpAndModifySelection: (id)sender;

Description forthcoming.

### moveWordBackward:

- (void) moveWordBackward: (id)sender;

Description forthcoming.

### moveWordBackwardAndModifySelection:

- (void) moveWordBackwardAndModifySelection: (id)sender;

Description forthcoming.

### moveWordForward:

- (void) moveWordForward: (id)sender;

Description forthcoming.

### moveWordForwardAndModifySelection:

- (void) moveWordForwardAndModifySelection: (id)sender;

Description forthcoming.

### pageDown:

- (void) pageDown: (id)sender;

Description forthcoming.

### pageUp:

- (void) pageUp: (id)sender;

Description forthcoming.

### scrollLineDown:

- (void) scrollLineDown: (id)sender;

Description forthcoming.

### scrollLineUp:

- (void) scrollLineUp: (id)sender;

Description forthcoming.

### scrollPageDown:

- (void) scrollPageDown: (id)sender;

Description forthcoming.

### scrollPageUp:

- (void) scrollPageUp: (id)sender;

Description forthcoming.

### selectAll:

- (void) selectAll: (id)sender;

Description forthcoming.

### selectLine:

- (void) selectLine: (id)sender;

Description forthcoming.

### selectParagraph:

- (void) selectParagraph: (id)sender;

Description forthcoming.

### selectToMark:

- (void) selectToMark: (id)sender;

Description forthcoming.

### selectWord:

- (void) selectWord: (id)sender;

Description forthcoming.

### showContextHelp:

- (void) showContextHelp: (id)sender;

Description forthcoming.

### swapWithMark:

- (void) swapWithMark: (id)sender;

Description forthcoming.

### transpose:

- (void) transpose: (id)sender;

Description forthcoming.

### transposeWords:

- (void) transposeWords: (id)sender;

Description forthcoming.

### uppercaseWord:

- (void) uppercaseWord: (id)sender;

Description forthcoming.

### yank:

- (void) yank: (id)sender;

Description forthcoming.

Up