Name

NSResponder — Mac OS X 10.0

Synopsis

This abstract class provides the basis of the Application Kit’s event handling system. NSResponder is the superclass of the three cornerstone classes of the AppKit: NSApplication, NSView, and NSWindow. The methods in this class are overridden by subclasses to handle mouse and key event handling messages. For more information about AppKit event handling with NSResponder, see Chapter 3.

image with no caption

@interface NSResponder : NSObject <NSCoding>
                                  // Accessor Methods
   - (void)setInterfaceStyle:(NSInterfaceStyle)interfaceStyle;
   - (NSInterfaceStyle)interfaceStyle;
   - (void)setMark:(id)sender;
   - (void)setNextResponder:(NSResponder *)aResponder;
   - (NSResponder *)nextResponder;
   - (void)setMenu:(NSMenu *)menu;
   - (NSMenu *)menu;
                                  // Instance Methods
   - (BOOL)acceptsFirstResponder;
   - (BOOL)becomeFirstResponder;
   - (void)capitalizeWord:(id)sender;
   - (void)centerSelectionInVisibleArea:(id)sender;
   - (void)changeCaseOfLetter:(id)sender;
   - (void)complete:(id)sender;
   - (void)deleteBackward:(id)sender;
   - (void)deleteForward:(id)sender;
   - (void)deleteToBeginningOfLine:(id)sender;
   - (void)deleteToBeginningOfParagraph:(id)sender;
   - (void)deleteToEndOfLine:(id)sender;
   - (void)deleteToEndOfParagraph:(id)sender;
   - (void)deleteToMark:(id)sender;
   - (void)deleteWordBackward:(id)sender;
   - (void)deleteWordForward:(id)sender;
   - (void)

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.