Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Apple Developer Connection
Advanced Search
Member Login Log In | Not a Member? Contact ADC

Previous Book Contents Book Index Next

Inside Macintosh: Programmer's Guide to MacApp / Part 2 - Working With MacApp


Chapter 20 -
Working With the Keyboard

This chapter describes how to respond to keystrokes and key combinations in a MacApp application. It also includes recipes and sample code that demonstrate how to

For a detailed description of keystroke dispatching, see "Target Chain Dispatching" on page 107.


Chapter Contents
Overview
Simple Keystrokes
Command-Key Combinations With Menu Command Equivalents
Command-Key Combinations With No Menu Equivalent
Other Modifier Keys
Function Keys and Other Extended Keyboard Keys
Scripting Note
Recipes--The Keyboard
Working With the Keyboard--A General Outline
Recipe--Handling a Keystroke Other Than a Command-Key Combination
Override the DoKeyEvent Method of an Event-Handling or Behavior Class
Recipe--Responding to a Command-Key Combination
Override DoCommandKeyEvent in an Event-Handling or Behavior Class

Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice