# NSResponder

scottc@net-community.com
Generated at 2026-06-27 19:09:52 +0000

Abstract class which is basis of command and event processing

1996,1999 Free Software Foundation, Inc.
Software documentation for the NSResponder class
AppKit/NSResponder.h
NSCoding
Description forthcoming.
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.
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.
acceptsFirstResponder
Returns `YES` if the receiver is able to become the first responder, `NO` otherwise.
becomeFirstResponder
Description forthcoming.
doCommandBySelector:
aSelector
Description forthcoming.
encodeWithCoder:
aCoder
Description forthcoming.
flagsChanged:
theEvent
Description forthcoming.
flushBufferedKeyEvents
Description forthcoming.
helpRequested:
theEvent
Description forthcoming.
initWithCoder:
aDecoder
Description forthcoming.
insertText:
aString

Tells the receiver to insert the given string. In a text view the text is typically inserted at the insertion point, and replaces any selection.

Subclasses should override this method. The implementation in NSResponder just sends the message on to the next responder.

Normally, aString will be an NSString, but in some cases, it might be an NSAttributedString.

interfaceStyle
Description forthcoming.
interpretKeyEvents:
eventArray
Description forthcoming.
keyDown:
theEvent
Description forthcoming.
keyUp:
theEvent
Description forthcoming.
menu
Description forthcoming.
mouseDown:
theEvent
Description forthcoming.
mouseDragged:
theEvent
Description forthcoming.
mouseEntered:
theEvent
Description forthcoming.
mouseExited:
theEvent
Description forthcoming.
mouseMoved:
theEvent
Description forthcoming.
mouseUp:
theEvent
Description forthcoming.
nextResponder
Description forthcoming.
noResponderFor:
eventSelector
Description forthcoming.
otherMouseDown:
theEvent
Description forthcoming.
otherMouseDragged:
theEvent
Description forthcoming.
otherMouseUp:
theEvent
Description forthcoming.
performKeyEquivalent:
theEvent
Description forthcoming.
performMnemonic:
aString
Description forthcoming.
presentError:
error
Description forthcoming.
presentError:
error
modalForWindow:
window
delegate:
delegate
didPresentSelector:
sel
contextInfo:
context
Description forthcoming.
resignFirstResponder
Description forthcoming.
rightMouseDown:
theEvent
Description forthcoming.
rightMouseDragged:
theEvent
Description forthcoming.
rightMouseUp:
theEvent
Description forthcoming.
scrollWheel:
theEvent
Description forthcoming.
setInterfaceStyle:
aStyle
Description forthcoming.
setMenu:
aMenu
Description forthcoming.
setNextResponder:
aResponder
Description forthcoming.
shouldBeTreatedAsInkEvent:
theEvent
Description forthcoming.
tryToPerform:
anAction
with:
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
Description forthcoming.
validRequestorForSendType:
typeSent
returnType:
typeReturned
Description forthcoming.
willPresentError:
error
Description forthcoming.
Software documentation for the NSResponder(OptionalActionMethods) category
AppKit/NSResponder.h
Description forthcoming.
cancelOperation:
sender
Description forthcoming.
capitalizeWord:
sender
Description forthcoming.
centerSelectionInVisibleArea:
sender
Description forthcoming.
changeCaseOfLetter:
sender
Description forthcoming.
complete:
sender
Description forthcoming.
deleteBackward:
sender
Description forthcoming.
deleteBackwardByDecomposingPreviousCharacter:
sender
Description forthcoming.
deleteForward:
sender
Description forthcoming.
deleteToBeginningOfLine:
sender
Description forthcoming.
deleteToBeginningOfParagraph:
sender
Description forthcoming.
deleteToEndOfLine:
sender
Description forthcoming.
deleteToEndOfParagraph:
sender
Description forthcoming.
deleteToMark:
sender
Description forthcoming.
deleteWordBackward:
sender
Description forthcoming.
deleteWordForward:
sender
Description forthcoming.
indent:
sender
Description forthcoming.
insertBacktab:
sender
Description forthcoming.
insertContainerBreak:
sender
Description forthcoming.
insertLineBreak:
sender
Description forthcoming.
insertNewline:
sender
Description forthcoming.
insertNewlineIgnoringFieldEditor:
sender
Description forthcoming.
insertParagraphSeparator:
sender
Description forthcoming.
insertTab:
sender
Description forthcoming.
insertTabIgnoringFieldEditor:
sender
Description forthcoming.
lowercaseWord:
sender
Description forthcoming.
moveBackward:
sender
Description forthcoming.
moveBackwardAndModifySelection:
sender
Description forthcoming.
moveDown:
sender
Description forthcoming.
moveDownAndModifySelection:
sender
Description forthcoming.
moveForward:
sender
Description forthcoming.
moveForwardAndModifySelection:
sender
Description forthcoming.
moveLeft:
sender
Description forthcoming.
moveLeftAndModifySelection:
sender
Description forthcoming.
moveRight:
sender
Description forthcoming.
moveRightAndModifySelection:
sender
Description forthcoming.
moveToBeginningOfDocument:
sender
Description forthcoming.
moveToBeginningOfLine:
sender
Description forthcoming.
moveToBeginningOfParagraph:
sender
Description forthcoming.
moveToEndOfDocument:
sender
Description forthcoming.
moveToEndOfLine:
sender
Description forthcoming.
moveToEndOfParagraph:
sender
Description forthcoming.
moveUp:
sender
Description forthcoming.
moveUpAndModifySelection:
sender
Description forthcoming.
moveWordBackward:
sender
Description forthcoming.
moveWordBackwardAndModifySelection:
sender
Description forthcoming.
moveWordForward:
sender
Description forthcoming.
moveWordForwardAndModifySelection:
sender
Description forthcoming.
moveWordLeft:
sender
Description forthcoming.
moveWordLeftAndModifySelection:
sender
Description forthcoming.
moveWordRight:
sender
Description forthcoming.
moveWordRightAndModifySelection:
sender
Description forthcoming.
pageDown:
sender
Description forthcoming.
pageUp:
sender
Description forthcoming.
scrollLineDown:
sender
Description forthcoming.
scrollLineUp:
sender
Description forthcoming.
scrollPageDown:
sender
Description forthcoming.
scrollPageUp:
sender
Description forthcoming.
scrollToBeginningOfDocument:
sender
Description forthcoming.
scrollToEndOfDocument:
sender
Description forthcoming.
selectAll:
sender
Description forthcoming.
selectLine:
sender
Description forthcoming.
selectParagraph:
sender
Description forthcoming.
selectToMark:
sender
Description forthcoming.
selectWord:
sender
Description forthcoming.
setMark:
sender
Description forthcoming.
showContextHelp:
sender
Description forthcoming.
swapWithMark:
sender
Description forthcoming.
tabletPoint:
event
Description forthcoming.
tabletProximity:
event
Description forthcoming.
transpose:
sender
Description forthcoming.
transposeWords:
sender
Description forthcoming.
uppercaseWord:
sender
Description forthcoming.
yank:
sender
Description forthcoming.