O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required