ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/ApplicationKit/Classes/NSResponder.rtf

This is NSResponder.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc.  All Rights Reserved.

s4 li100 fi0 ri1007 ql f0 b fs36 fs100 
fs36 NSResponder 
pard s11 li2872 fi-2771 ri1007 ql tx2872 f1 b0 fs28 fs48 
fs28 f0 b fs24 Inherits From:tab b0 fs28 f1 NSObject
fs20 
fs28 s6 f0 b fs24 Conforms To:tab b0 fs28 f1 NSCoding
fi0 NSObject (NSObject)
fs20 
fs28 s7 fi-2771 f0 b fs24 Declared In:tab b0 fs28 f1 AppKit/NSResponder.h 
fs20 
fs28 pard s16 li100 fi0 ri1007 ql f0 b fs28 fs20 
fs28 Class Description
fs14 
fs28 pard s1 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2 
fs28 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'27t respond to'd0that it doesn'27t have a method for'd0the message is sent to its i next responderi0 . For an NSView, the next responder is usually its superview; the content view'27s next responder is the NSWindow. Each NSWindow, therefore, has its own i responder chaini0 . Messages are passed up the chain until they reach an object that can respond.
fs16 
fs28 Action messages and keyboard event messages are sent first to the i first responderi0 , 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'27t handle work their way up the responder chain.
fs16 
fs28 This class defines the methods that pass event and action messages along the responder chain.
fs16 
fs28 pard s16 li100 fi0 ri1007 ql f0 b fs24 
fs28 Managing the Next Responder 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (NSResponder *)b nextResponderb0 tab Returns the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setNextResponder:b0 (NSResponder *)i aResponderi0 tab 
s9 li7030 fi-6553 fi-5796 tab Makes i aResponderi0  the receiver'27s next responder.
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Determining the First Responder 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (BOOL)b acceptsFirstResponderb0 tab Subclasses override to accept or reject first responder status. NSResponder'27s implementation simply returns NO.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (BOOL)b becomeFirstResponderb0 tab Notifies the receiver that it'27s the first responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (BOOL)b resignFirstResponderb0 tab Notifies the receiver that it'27s not the first responder.
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Aiding Event Processing 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (BOOL)b performKeyEquivalent:b0 (NSEvent *)i theEvent
s9 li7030 fi-6553 fi-5796 i0 tab Subclasses override to respond to keyboard input. NSResponder'27s implementation simply returns NO to indicate i theEventi0  isn'27t handled.
s8 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 {f3 -} (BOOL)b tryToPerform:b0 (SEL)i anActioni0 tab Aids in dispatching action messages. Returns YES if an
s9 li7030 fi-6553 fi-5796 b with:b0 (id)i anObjecti0  tab tab responder in the responder chain can perform the i anActioni0  method, which takes the single argument i anObjecti0 .
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Forwarding Event Messages 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b flagsChanged:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle flags-changed events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b helpRequested:b0 (NSEvent *)i theEventi0 tab Causes the Help panel to display the help attached to the receiver. If there'27s no attached help, passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b keyDown:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle key-down events. NSResponder'27s implementation passes the message to the receiver'27s next responder. If the first responder changes, this method posts the notification NSTextDidEndEditingNotification with the current object and, in the notification'27s dictionary, the key NSTextMovement to the default notification center.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b keyUp:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle key-up events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b mouseDown:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle mouse-down events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b mouseDragged:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle mouse-dragged events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b mouseEntered:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle mouse-entered events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b mouseExited:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle mouse-exited events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b mouseMoved:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle mouse-moved events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b mouseUp:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle mouse-up events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b noResponderFor:b0 (SEL)i eventSelectori0 tab Responds to an event message that has reached the end of the responder chain without finding an object that can respond. When the event is a key down, generates a beep.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b rightMouseDown:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle right mouse-down events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b rightMouseDragged:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle right mouse-dragged events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b rightMouseUp:b0 (NSEvent *)i theEventi0 tab Subclasses override to handle right mouse-up events. NSResponder'27s implementation passes the message to the receiver'27s next responder.
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Services Menu Support 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (id)b validRequestorForSendType:b0 (NSString *)i typeSenti0 tab  
s9 li7030 fi-6553 fi-5796 b returnType:b0 (NSString *)i typeReturnedi0 tab Subclasses override to determine which Services menu items are enabled at a given time. Returning b selfb0  enables services that can receive i typeSenti0  pasteboard types and can return i typeReturnedi0  pasteboard types. Returning b nilb0  disables them. NSResponder'27s implementation passes the message to the receiver'27s next responder. 
s8 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.