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
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


Instance Variables

Method summary

acceptsFirstResponder 

- (BOOL) acceptsFirstResponder;
Availability: Not in OpenStep/MacOS-X

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


becomeFirstResponder 

- (BOOL) becomeFirstResponder;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


doCommandBySelector: 

- (void) doCommandBySelector: (SEL)aSelector;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


encodeWithCoder: 

- (void) encodeWithCoder: (NSCoder*)aCoder;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


flagsChanged: 

- (void) flagsChanged: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


flushBufferedKeyEvents 

- (void) flushBufferedKeyEvents;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


helpRequested: 

- (void) helpRequested: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


initWithCoder: 

- (id) initWithCoder: (NSCoder*)aDecoder;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertText: 

- (void) insertText: (id)aString;
Availability: Not in OpenStep/MacOS-X

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 

- (NSInterfaceStyle) interfaceStyle;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


interpretKeyEvents: 

- (void) interpretKeyEvents: (NSArray*)eventArray;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


keyDown: 

- (void) keyDown: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


keyUp: 

- (void) keyUp: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


menu 

- (NSMenu*) menu;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


mouseDown: 

- (void) mouseDown: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


mouseDragged: 

- (void) mouseDragged: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


mouseEntered: 

- (void) mouseEntered: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


mouseExited: 

- (void) mouseExited: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


mouseMoved: 

- (void) mouseMoved: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


mouseUp: 

- (void) mouseUp: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


nextResponder 

- (NSResponder*) nextResponder;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


noResponderFor: 

- (void) noResponderFor: (SEL)eventSelector;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


otherMouseDown: 

- (void) otherMouseDown: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


otherMouseDragged: 

- (void) otherMouseDragged: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


otherMouseUp: 

- (void) otherMouseUp: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


performKeyEquivalent: 

- (BOOL) performKeyEquivalent: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


performMnemonic: 

- (BOOL) performMnemonic: (NSString*)aString;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


resignFirstResponder 

- (BOOL) resignFirstResponder;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


rightMouseDown: 

- (void) rightMouseDown: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


rightMouseDragged: 

- (void) rightMouseDragged: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


rightMouseUp: 

- (void) rightMouseUp: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


scrollWheel: 

- (void) scrollWheel: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setInterfaceStyle: 

- (void) setInterfaceStyle: (NSInterfaceStyle)aStyle;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setMenu: 

- (void) setMenu: (NSMenu*)aMenu;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setNextResponder: 

- (void) setNextResponder: (NSResponder*)aResponder;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


shouldBeTreatedAsInkEvent: 

- (BOOL) shouldBeTreatedAsInkEvent: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


tryToPerform: with: 

- (BOOL) tryToPerform: (SEL)anAction with: (id)anObject;
Availability: Not in OpenStep/MacOS-X

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;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


validRequestorForSendType: returnType: 

- (id) validRequestorForSendType: (NSString*)typeSent returnType: (NSString*)typeReturned;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.




Instance Variables for NSResponder Class

_interface_style

@protected NSInterfaceStyle _interface_style;

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.


_next_responder

@protected NSResponder* _next_responder;

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.


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





Software documentation for the NSResponder(OptionalActionMethods) category

NSResponder(OptionalActionMethods)

Declared in:
AppKit/NSResponder.h
Availability: Not in OpenStep/MacOS-X

Description forthcoming.

Method summary

cancelOperation: 

- (void) cancelOperation: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


capitalizeWord: 

- (void) capitalizeWord: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


centerSelectionInVisibleArea: 

- (void) centerSelectionInVisibleArea: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


changeCaseOfLetter: 

- (void) changeCaseOfLetter: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


complete: 

- (void) complete: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteBackward: 

- (void) deleteBackward: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteBackwardByDecomposingPreviousCharacter: 

- (void) deleteBackwardByDecomposingPreviousCharacter: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteForward: 

- (void) deleteForward: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteToBeginningOfLine: 

- (void) deleteToBeginningOfLine: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteToBeginningOfParagraph: 

- (void) deleteToBeginningOfParagraph: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteToEndOfLine: 

- (void) deleteToEndOfLine: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteToEndOfParagraph: 

- (void) deleteToEndOfParagraph: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteToMark: 

- (void) deleteToMark: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteWordBackward: 

- (void) deleteWordBackward: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deleteWordForward: 

- (void) deleteWordForward: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


indent: 

- (void) indent: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertBacktab: 

- (void) insertBacktab: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertNewline: 

- (void) insertNewline: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertNewlineIgnoringFieldEditor: 

- (void) insertNewlineIgnoringFieldEditor: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertParagraphSeparator: 

- (void) insertParagraphSeparator: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertTab: 

- (void) insertTab: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertTabIgnoringFieldEditor: 

- (void) insertTabIgnoringFieldEditor: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


lowercaseWord: 

- (void) lowercaseWord: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveBackward: 

- (void) moveBackward: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveBackwardAndModifySelection: 

- (void) moveBackwardAndModifySelection: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveDown: 

- (void) moveDown: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveDownAndModifySelection: 

- (void) moveDownAndModifySelection: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveForward: 

- (void) moveForward: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveForwardAndModifySelection: 

- (void) moveForwardAndModifySelection: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveLeft: 

- (void) moveLeft: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveLeftAndModifySelection: 

- (void) moveLeftAndModifySelection: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveRight: 

- (void) moveRight: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveRightAndModifySelection: 

- (void) moveRightAndModifySelection: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveToBeginningOfDocument: 

- (void) moveToBeginningOfDocument: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveToBeginningOfLine: 

- (void) moveToBeginningOfLine: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveToBeginningOfParagraph: 

- (void) moveToBeginningOfParagraph: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveToEndOfDocument: 

- (void) moveToEndOfDocument: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveToEndOfLine: 

- (void) moveToEndOfLine: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveToEndOfParagraph: 

- (void) moveToEndOfParagraph: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveUp: 

- (void) moveUp: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveUpAndModifySelection: 

- (void) moveUpAndModifySelection: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveWordBackward: 

- (void) moveWordBackward: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveWordBackwardAndModifySelection: 

- (void) moveWordBackwardAndModifySelection: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveWordForward: 

- (void) moveWordForward: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


moveWordForwardAndModifySelection: 

- (void) moveWordForwardAndModifySelection: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


pageDown: 

- (void) pageDown: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


pageUp: 

- (void) pageUp: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


scrollLineDown: 

- (void) scrollLineDown: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


scrollLineUp: 

- (void) scrollLineUp: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


scrollPageDown: 

- (void) scrollPageDown: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


scrollPageUp: 

- (void) scrollPageUp: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectAll: 

- (void) selectAll: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectLine: 

- (void) selectLine: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectParagraph: 

- (void) selectParagraph: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectToMark: 

- (void) selectToMark: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectWord: 

- (void) selectWord: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


showContextHelp: 

- (void) showContextHelp: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


swapWithMark: 

- (void) swapWithMark: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


transpose: 

- (void) transpose: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


transposeWords: 

- (void) transposeWords: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


uppercaseWord: 

- (void) uppercaseWord: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


yank: 

- (void) yank: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.



Up