IM Macintosh Toolbox Essentials

Im Macintosh Toolbox Essentials-Free PDF

  • Date:22 Jul 2020
  • Views:15
  • Downloads:0
  • Pages:909
  • Size:6.16 MB

Share Pdf : Im Macintosh Toolbox Essentials

Download and Preview : Im Macintosh Toolbox Essentials


Report CopyRight/DMCA Form For : Im Macintosh Toolbox Essentials


Transcription:

Apple Computer Inc LIMITED WARRANTY ON MEDIA AND,1992 Apple Computer Inc REPLACEMENT. All rights reserved ALL IMPLIED WARRANTIES ON THIS. No part of this publication may be MANUAL INCLUDING IMPLIED. reproduced stored in a retrieval system WARRANTIES OF MERCHANTABILITY. or transmitted in any form or by any AND FITNESS FOR A PARTICULAR. means mechanical electronic PURPOSE ARE LIMITED IN DURATION. photocopying recording or otherwise TO NINETY 90 DAYS FROM THE DATE. without prior written permission of OF THE ORIGINAL RETAIL PURCHASE. Apple Computer Inc Printed in the OF THIS PRODUCT, United States of America Even though Apple has reviewed this. No licenses express or implied are manual APPLE MAKES NO WARRANTY. granted with respect to any of the OR REPRESENTATION EITHER EXPRESS. technology described in this book OR IMPLIED WITH RESPECT TO THIS. Apple retains all intellectual property MANUAL ITS QUALITY ACCURACY. rights associated with the technology MERCHANTABILITY OR FITNESS FOR A. described in this book This book is PARTICULAR PURPOSE AS A RESULT. intended to assist application THIS MANUAL IS SOLD AS IS AND. developers to develop applications only YOU THE PURCHASER ARE ASSUMING. for Apple Macintosh computers THE ENTIRE RISK AS TO ITS QUALITY. Apple Computer Inc AND ACCURACY,1 Infinite Loop IN NO EVENT WILL APPLE BE LIABLE. Cupertino CA 95014 FOR DIRECT INDIRECT SPECIAL,408 996 1010 INCIDENTAL OR CONSEQUENTIAL. Apple the Apple logo APDA DAMAGES RESULTING FROM ANY. AppleShare AppleTalk A UX DEFECT OR INACCURACY IN THIS. EtherTalk LaserWriter Macintosh MANUAL even if advised of the possibility. MPW and MultiFinder and are of such damages, trademarks of Apple Computer Inc THE WARRANTY AND REMEDIES SET.
registered in the United States and other FORTH ABOVE ARE EXCLUSIVE AND IN. countries LIEU OF ALL OTHERS ORAL OR, Apple Desktop Bus Balloon Help WRITTEN EXPRESS OR IMPLIED No. BalloonWriter Chicago Finder Geneva Apple dealer agent or employee is. KanjiTalk Monaco New York authorized to make any modification. QuickDraw QuickTime ResEdit extension or addition to this warranty. System 7 and TrueType are trademarks Some states do not allow the exclusion or. of Apple Computer Inc limitation of implied warranties or liability. Adobe Illustrator and PostScript are for incidental or consequential damages so. trademarks of Adobe Systems the above limitation or exclusion may not. Incorporated which may be registered apply to you This warranty gives you. in certain jurisdictions specific legal rights and you may also have. AGFA is a trademark of Agfa Gevaert other rights which vary from state to state. FrameMaker is a registered trademark,of Frame Technology Corporation. Helvetica Palatino and Times are,registered trademarks of Linotype. ITC Zapf Dingbats is a registered,trademark of International Typeface. Corporation,Simultaneously published in the United.
States and Canada,Figures Tables and Listings xv,Preface About This Book xxv. Format of a Typical Chapter xxvi,Conventions Used in This Book xxvi. Special Fonts xxvii,Types of Notes xxvii,Empty Strings xxvii. Assembly Language Information xxvii,The Development Environment xxviii. Chapter 1 Introduction to the Macintosh Toolbox 1 1. Overview of the Macintosh Toolbox 1 4,Events 1 5,Windows 1 6.
Controls 1 7,Alert Boxes and Dialog Boxes 1 8,Icons and Other Interactions With the Finder 1 10. Resources 1 11,Help Balloons 1 14,Copy and Paste 1 14. Related System Software Features 1 14,Drawing on the Screen 1 14. Handling Text 1 14,Managing Files 1 15,Allocating Memory and Launching Processes 1 15. Creating Publishers and Subscribers 1 15,Communicating With Other Applications 1 16.
Designing Your Application 1 16,Chapter 2 Event Manager 2 1. Introduction to Events 2 4,Low Level Events 2 8,Operating System Events 2 10. High Level Events 2 13,Priority of Events 2 15,Switching Contexts 2 15. About the Event Manager 2 16,Using the Event Manager 2 17. Obtaining Information About Events 2 18,Processing Events 2 21.
Using the WaitNextEvent Function 2 22,Writing an Event Loop 2 24. Setting the Event Mask 2 26,Handling Events in a Dialog Box 2 29. Creating a Size Resource 2 30,Handling Low Level Events 2 32. Responding to Mouse Events 2 33,Responding to Keyboard Events 2 38. Scanning for a Cancel Event 2 46,Responding to Update Events 2 47.
Responding to Activate Events 2 50,Responding to Disk Inserted Events 2 55. Responding to Null Events 2 57,Handling Operating System Events 2 58. Responding to Suspend and Resume Events 2 60,Responding to Mouse Moved Events 2 62. Handling High Level Events 2 67,Responding to Events From Other Applications 2 69. Searching for a Specific High Level Event 2 71,Determining the Sender of a High Level Event 2 72.
Sending High Level Events 2 73,Requesting Return Receipts 2 77. Handling Apple Events 2 78,Event Manager Reference 2 78. Data Structures 2 78,The Event Record 2 79,The Target ID Record 2 81. The High Level Event Message Record 2 82,The Event Queue 2 83. Event Manager Routines 2 84,Receiving Events 2 84,Sending Events 2 100.
Converting Process Serial Numbers and Port Names 2 105. Reading the Mouse 2 108,Reading the Keyboard 2 110. Getting Timing Information 2 112,Application Defined Routine 2 114. Filter Function for Searching the High Level Event Queue 2 114. Resource 2 115,The Size Resource 2 115,Summary of the Event Manager 2 120. Pascal Summary 2 120,Constants 2 120,Data Types 2 122. Event Manager Routines 2 123,Application Defined Routine 2 124.
C Summary 2 125,Constants 2 125,Data Types 2 127,Event Manager Routines 2 128. Application Defined Routine 2 129,Assembly Language Summary 2 130. Data Structures 2 130,Trap Macros 2 130,Global Variables 2 131. Result Codes 2 132,Chapter 3 Menu Manager 3 1,Introduction to Menus 3 5. Menu and Menu Bar Definition Routines 3 9,The Menu Bar 3 9.
Menus 3 10,Menu Items 3 11,Groups of Menu Items 3 14. Keyboard Equivalents for Menu Commands 3 16, Menus Added Automatically by the Menu Manager 3 19. The Apple Menu 3 20,The File Menu 3 22,The Edit Menu 3 24. The Font Menu 3 26,The Size Menu 3 27,The Help Menu 3 29. The Keyboard Menu 3 32,The Application Menu 3 33,Pop Up Menus 3 33.
Hierarchical Menus 3 38,About the Menu Manager 3 39. How the Menu Manager Maintains Information About Menus 3 40. How the Menu Manager Maintains Information About an Application s. Menu Bar 3 40,Using the Menu Manager 3 41,Creating a Menu 3 42. Creating a Menu Resource 3 43,Creating a Menu Bar Resource 3 49. Setting Up Your Application s Menu Bar 3 50,Creating a Hierarchical Menu 3 53. Creating a Pop Up Menu 3 56,Changing the Appearance of Items in a Menu 3 57.
Enabling and Disabling Menu Items 3 58,Changing the Text of an Item 3 59. Changing the Font Style of Menu Items 3 60,Changing the Mark of Menu Items 3 61. Changing the Icon or Script Code of Menu Items 3 62. Adding Items to a Menu 3 64,Adding Items to the Help Menu 3 67. Adding Items to the Apple Menu 3 68,Adding Fonts to a Menu 3 69. Handling User Choice of a Menu Command 3 70,Handling Mouse Down Events in the Menu Bar 3 72.
Adjusting the Menus of an Application 3 73, Determining if the User Chose a Keyboard Equivalent 3 77. Responding When the User Chooses a Menu Item 3 78,Handling the Apple Menu 3 80. Handling the Help Menu 3 81,Handling a Size Menu 3 82. Accessing Menus From a Dialog Box 3 84,Writing Your Own Menu Definition Procedure 3 87. Calculating the Dimensions of a Menu 3 89,Drawing Menu Items in a Menu 3 90.
Determining Whether the Cursor Is in an Enabled Menu Item 3 92. Menu Manager Reference 3 95,Data Structures 3 95,The Menu Record 3 95. The Menu List 3 97,The Menu Color Information Table Record 3 98. Menu Manager Routines 3 102,Initializing the Menu Manager 3 103. Creating Menus 3 105, Adding Menus to and Removing Menus From the Current. Menu List 3 108, Getting a Menu Bar Description From an MBAR Resource 3 110.
Getting and Setting the Menu Bar 3 112,Drawing the Menu Bar 3 113. Responding to the User s Choice of a Menu Command 3 114. Getting a Handle to a Menu Record 3 122,Adding and Deleting Menu Items 3 124. Getting and Setting the Appearance of Menu Items 3 130. Disposing of Menus 3 140,Counting the Items in a Menu 3 140. Highlighting the Menu Bar 3 141,Recalculating Menu Dimensions 3 142. Managing Entries in the Menu Color Information Table 3 143. Application Defined Routine 3 148,The Menu Definition Procedure 3 148.
Resources 3 151,The Menu Resource 3 151,The Menu Bar Resource 3 155. The Menu Color Information Table Resource 3 155,The Menu Definition Procedure Resource 3 157. Summary of the Menu Manager 3 158,Pascal Summary 3 158. Constants 3 158,Data Types 3 158,Menu Manager Routines 3 159. Application Defined Routine 3 162,C Summary 3 162,Constants 3 162.
Data Types 3 163,Menu Manager Routines 3 164,Application Defined Routine 3 166. Assembly Language Summary 3 167,Data Structures 3 167. Global Variables 3 167,Result Codes 3 167,Chapter 4 Window Manager 4 1. Introduction to Windows 4 4,Active and Inactive Windows 4 6. Types of Windows 4 8,Window Regions 4 12,Dialog Boxes and Alert Boxes 4 13.
Controls 4 14,Windows on the Desktop 4 15,About the Window Manager 4 16. Graphics Ports 4 17,Window Records 4 19,Color Windows 4 20. Events in Windows 4 21,Using the Window Manager 4 22. Managing Multiple Windows 4 23,Creating a Window 4 25. Defining a Window Resource 4 25,Creating a Window From a Resource 4 27.
Positioning a Document Window on the Desktop 4 30,Drawing the Window Contents 4 39. Updating the Content Region 4 40,Maintaining the Update Region 4 41. Handling Events in Windows 4 41,Handling Mouse Events in Windows 4 42. Handling Keyboard Events in Windows 4 47,Handling Update Events 4 48. Handling Activate Events 4 50,Moving a Window 4 53.
Zooming a Window 4 53,Resizing a Window 4 57,Closing a Window 4 60. Hiding and Showing a Window 4 62,Window Manager Reference 4 64. Window Manager Reference 4 65,Data Structures 4 65. The Color Window Record 4 65,The Window Record 4 69. The Window State Data Record 4 70,The Window Color Table Record 4 71.
The Auxiliary Window Record 4 73,The Window List 4 74. Window Manager Routines 4 74,Initializing the Window Manager 4 74. Creating Windows 4 75,Naming Windows 4 85,Displaying Windows 4 86. Retrieving Window Information 4 91,Moving Windows 4 94. Resizing Windows 4 99,Zooming Windows 4 101,Closing and Deallocating Windows 4 103.
Maintaining the Update Region 4 106, Setting and Retrieving Other Window Characteristics 4 109. Manipulating the Desktop 4 112,Manipulating Window Color Information 4 114. Low Level Routines 4 116,Application Defined Routine 4 120. The Window Definition Function 4 120,Resources 4 124. The Window Resource 4 124,The Window Definition Function Resource 4 127.
The Window Color Table Resource 4 127,Summary of the Window Manager 4 130. Pascal Summary 4 130,Constants 4 130,Data Types 4 132. Window Manager Routines 4 134,Application Defined Routine 4 136. C Summary 4 137,Constants 4 137,Data Types 4 139,Window Manager Routines 4 140. Application Defined Routine 4 143,Assembly Language Summary 4 144.
Data Types 4 144,Global Variables 4 145,Chapter 5 Control Manager 5 1. Introduction to Controls 5 4,Buttons 5 5,Checkboxes 5 5. Radio Buttons 5 6,Pop Up Menus 5 6,Scroll Bars 5 7. Other Controls 5 11,Active and Inactive Controls 5 11. The Control Definition Function 5 14,About the Control Manager 5 14.
Using the Control Manager 5 15,Creating and Displaying a Control 5 15. Creating a Button Checkbox or Radio Button 5 17,Creating Scroll Bars 5 21. Creating a Pop Up Menu 5 25,Updating a Control 5 29. Responding to Mouse Events in a Control 5 30,Determining a Mouse Down Event in a Control 5 31. Tracking the Cursor in a Control 5 35,Determining and Changing Control Settings 5 37.
Scrolling Through a Document 5 43, Scrolling in Response to Events in the Scroll Box 5 53. Scrolling in Response to Events in Scroll Arrows and Gray Areas 5 57. Drawing a Scrolled Document Inside a Window 5 62,Moving and Resizing Scroll Bars 5 65. Defining Your Own Control Definition Function 5 71. Control Manager Reference 5 72,Data Structures 5 72. Control Manager Reference 5 73,The Control Record 5 73. The Auxiliary Control Record 5 76,The Pop Up Menu Private Data Record 5 77.
The Control Color Table Record 5 77,Control Manager Routines 5 80. Creating Controls 5 81,Drawing Controls 5 85,Handling Mouse Events in Controls 5 88. Changing Control Settings and Display 5 93,Determining Control Values 5 102. Removing Controls 5 108,Application Defined Routines 5 109. Defining Your Own Control Definition Function 5 109. Defining Your Own Action Procedures 5 115,Resources 5 117.
The Control Resource 5 118,The Control Color Table Resource 5 121. Menus 1 6 Windows 1 6 Controls 1 7 Alert Boxes and Dialog Boxes 1 8 Icons and Other Interactions With the Finder 1 10 Resources 1 11 Help Balloons 1 14 Copy and Paste 1 14 Related System Software Features 1 14 Drawing on the Screen 1 14 Handling Text 1 14 Managing Files 1 15 Allocating Memory and Launching Processes 1 15 Creating Publishers and

Related Books