Return to the Alphabetic Index
Return to the Class Browser
Return to the Picture Browser
Copyright (c) 1994 by NeXT Computer, Inc. All Rights Reserved.


Inherits From: NSObject

Conforms To: NSCoding NSObject (NSObject)

Declared In: AppKit/NSResponder.h

Class Description

NSResponder is an abstract class that forms the basis of command and event processing in the Application Kit. Most Application Kit classes inherit from NSResponder. When an NSResponder receives an event or action message that it can't respond tothat it doesn't have a method forthe message is sent to its next responder. For an NSView, the next responder is usually its superview; the content view's next responder is the NSWindow. Each NSWindow, therefore, has its own responder chain. Messages are passed up the chain until they reach an object that can respond.

Action messages and keyboard event messages are sent first to the first responder, the object that displays the current selection and is expected to handle most user actions within a window. Each NSWindow has its own first responder. Messages the first responder can't handle work their way up the responder chain.

This class defines the methods that pass event and action messages along the responder chain.

Managing the Next Responder

Determining the First Responder

Aiding Event Processing

Forwarding Event Messages

Services Menu Support