DekGenius.com
[ Team LiB ] Previous Section Next Section

NSResponder Mac OS X 10.0

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.

figs/cocn_1577.gif

@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)doCommandBySelector:(SEL)aSelector;
   - (void)flagsChanged:(NSEvent *)theEvent;
   - (void)flushBufferedKeyEvents;
   - (void)helpRequested:(NSEvent *)eventPtr;
   - (void)indent:(id)sender;
   - (void)insertBacktab:(id)sender;
   - (void)insertNewline:(id)sender;
   - (void)insertNewlineIgnoringFieldEditor:(id)sender;
   - (void)insertParagraphSeparator:(id)sender;
   - (void)insertTab:(id)sender;
   - (void)insertTabIgnoringFieldEditor:(id)sender;
   - (void)insertText:(id)insertString;
   - (void)interpretKeyEvents:(NSArray *)eventArray;
   - (void)keyDown:(NSEvent *)theEvent;
   - (void)keyUp:(NSEvent *)theEvent;
   - (void)lowercaseWord:(id)sender;
   - (void)mouseDown:(NSEvent *)theEvent;
   - (void)mouseDragged:(NSEvent *)theEvent;
   - (void)mouseEntered:(NSEvent *)theEvent;
   - (void)mouseExited:(NSEvent *)theEvent;
   - (void)mouseMoved:(NSEvent *)theEvent;
   - (void)mouseUp:(NSEvent *)theEvent;
   - (void)moveBackward:(id)sender;
   - (void)moveBackwardAndModifySelection:(id)sender;
   - (void)moveDown:(id)sender;
   - (void)moveDownAndModifySelection:(id)sender;
   - (void)moveForward:(id)sender;
   - (void)moveForwardAndModifySelection:(id)sender;
   - (void)moveLeft:(id)sender;
   - (void)moveRight:(id)sender;
   - (void)moveToBeginningOfDocument:(id)sender;
   - (void)moveToBeginningOfLine:(id)sender;
   - (void)moveToBeginningOfParagraph:(id)sender;
   - (void)moveToEndOfDocument:(id)sender;
   - (void)moveToEndOfLine:(id)sender;
   - (void)moveToEndOfParagraph:(id)sender;
   - (void)moveUp:(id)sender;
   - (void)moveUpAndModifySelection:(id)sender;
   - (void)moveWordBackward:(id)sender;
   - (void)moveWordBackwardAndModifySelection:(id)sender;
   - (void)moveWordForward:(id)sender;
   - (void)moveWordForwardAndModifySelection:(id)sender;
   - (void)noResponderFor:(SEL)eventSelector;
   - (void)otherMouseDown:(NSEvent *)theEvent;
   - (void)otherMouseDragged:(NSEvent *)theEvent;
   - (void)otherMouseUp:(NSEvent *)theEvent;
   - (void)pageDown:(id)sender;
   - (void)pageUp:(id)sender;
   - (BOOL)performKeyEquivalent:(NSEvent *)theEvent;
   - (BOOL)resignFirstResponder;
   - (void)rightMouseDown:(NSEvent *)theEvent;
   - (void)rightMouseDragged:(NSEvent *)theEvent;
   - (void)rightMouseUp:(NSEvent *)theEvent;
   - (void)scrollLineDown:(id)sender;
   - (void)scrollLineUp:(id)sender;
   - (void)scrollPageDown:(id)sender;
   - (void)scrollPageUp:(id)sender;
   - (void)scrollWheel:(NSEvent *)theEvent;
   - (void)selectAll:(id)sender;
   - (void)selectLine:(id)sender;
   - (void)selectParagraph:(id)sender;
   - (void)selectToMark:(id)sender;
   - (void)selectWord:(id)sender;
   - (BOOL)shouldBeTreatedAsInkEvent:(NSEvent *)theEvent;
   - (void)showContextHelp:(id)sender;
   - (void)swapWithMark:(id)sender;
   - (void)transpose:(id)sender;
   - (void)transposeWords:(id)sender;
   - (BOOL)tryToPerform:(SEL)anAction with:(id)anObject;
   - (NSUndoManager *)undoManager;
   - (void)uppercaseWord:(id)sender;
   - (id)validRequestorForSendType:(NSString *)sendType returnType:(NSString *)returnType;
   - (void)yank:(id)sender;
 // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;

Subclasses

NSApplication, NSDrawer, NSView, NSWindow, NSWindowController

    [ Team LiB ] Previous Section Next Section