Cocoa Event-Handling Guide
PDF
Introduction
Event Architecture
How an Event Enters a Cocoa Application
Event Dispatch
Action Messages
Responders
The Responder Chain
Event Objects and Types
NSEvent Objects
Event Types
Event Handling Basics
Preparing a Custom View for Receiving Events
Implementing Action Methods
Getting the Location of an Event
Testing for Event Type and Modifier Flags
Responder-Related Tasks
Handling Mouse Events
Overview of Mouse Events
Handling Mouse Clicks
Handling Mouse Dragging Operations
Handling Key Events
Overview of Key Events
Overriding the keyDown: Method
Handling Key Equivalents
Keyboard Interface Control
Using Tracking-Area Objects
Creating an NSTrackingArea Object
Managing a Tracking-Area Object
Responding to Mouse-Tracking Events
Managing Cursor-Update Events
Compatibility Issues
Handling Tablet Events
Packaging of Tablet Events
Tablet Events and the Responder Chain
Text System Defaults and Key Bindings
Key Bindings
Standard Action Methods for Selecting and Editing
Text System Defaults
Appendix A: Mouse-Tracking and Cursor-Update Events
Handling Mouse-Tracking Events
Managing Cursor-Update Events
Revision History
Related Reference
Objective-C
NSApplication
NSEvent
NSResponder
NSView
NSWindow
Related Sample Code
Cropped Image
Color Sampler
Cocoa OpenGL
DragItemAround
BoingX
People
Sketch-112
FunkyOverlayWindow
CIAnnotation
Related Documents
Cocoa Fundamentals Guide
View Programming Guide for Cocoa
Text Input Management