The Programmer’s Apple Mac Sourcebook
From the originals
12 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
Image 1
THE PROGRAMMER'S APPLE MAC SOURCEBOOK
THE PROGRAMMER'S APPLE® MAC® SOURCEBOOK Reference Tables for Apple Macintosh® Hardware and System Software Thom Hogan Microsoft PRESS
A red and tan circuit-board pattern covers the cover, with a white rectangular panel framed by a thin black border holding the title in red and black serif type and a black Microsoft Press logo square at lower left.
Reading notes: Registered trademark symbols after APPLE, MAC and Macintosh are small and may be approximated.
- Printed product names
- Apple Macintosh · Microsoft Press
- Languages
- English
PDF page 1
THE PROGRAMMER'S APPLE MAC SOURCEBOOK
THE PROGRAMMER'S APPLE® MAC® SOURCEBOOK Reference Tables for Apple Macintosh® Hardware and System Software Thom Hogan Microsoft PRESS
A book cover with a red and tan circuit-board pattern background, a central white panel framed by a thin black border containing red and black title text, and a black Microsoft Press logo box in the lower left.
Reading notes: Headline is split across several lines and includes registered trademark symbols that are reproduced as ® in the transcript. The 'Microsoft PRESS' logo text is small and stylized; spacing of 'PRESS' letters is approximate.
- Printed product names
- Apple Macintosh
- Languages
- English
PDF page 2 · PDF page 3
The image is a plain, entirely blank white page with no visible artwork, layout, or markings.
PDF page 4
PUBLISHED BY Microsoft Press A Division of Microsoft Corporation 16011 NE36th Way, Box 97017, Redmond, Washington 98073-9717 Copyright© 1989 by Thorn Hogan All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Library of Congress Cataloging in Publication Data Hogan, Thom,l952- The programmer's Apple Mac sourcebook I Thorn Hogan. p. em. Bibliography: p. Includes index. ISBN 1-55615-168-3 : $22.95 I. Macintosh (Computer)--Programming. I. Title. QA76.8.M3H63 1989 005.265 --de 19 89-3195 CIP Printed and bound in the United States of America. 123456789 WAKWAK 32109 Distributed to the book trade in the United States by Harper & Row. Distributed to the book trade in Canada by General Publishing Company, Ltd. Distributed to the book trade outside the United States and Canada by Penguin Books Ltd. Penguin Books Ltd., Harmondsworth, Middlesex, England Penguin Books Australia Ltd., Ringwood, Victoria, Australia Penguin Books N.Z. Ltd., 182-190 Wairau Road, Auckland 10, New Zealand British Cataloging in Publication Data available Apple~ AppleTalk~ HyperCard~ ImageWriter~ LaserWriter~ Lisa~ Mac~ and Macintosh® are registered trademarks, and Apple Desktop Bus: .. Finder':' MPW~" MultiFinder'," QuickDraw';" and Switcher"" are trademarks of Apple Computer, Inc. IBM® is a registered trademark of International Business Machines Corporation. Project Editor: Mary Ann Jones Technical Editors: Adrian Falla, Tom Creedon
Reading notes: OCR errors in the catalog data, e.g. 'Thom,l952-' and 'em.' Trademark symbols and punctuation around product names are garbled Reading order of the trademark block is uncertain
- Printed product names
- Apple · AppleTalk · HyperCard · ImageWriter · LaserWriter · Lisa · Mac · Macintosh · Apple Desktop Bus · Finder · MPW · MultiFinder · QuickDraw · Switcher · IBM
- Printed prices
- $22.95
- Printed dates
- 1989 · 89
- Languages
- English
PDF page 5
To Andy Hertzfeld, Bill Atkinson, Burrell Smith, and a host of others who helped make the Mac what it is-but they probably know all this stuff already, anyway.
Reading notes: Line-break hyphenation in 'Mac what it is-but' may affect reading order Irregular spacing in names 'Burrell Smith' and 'what it is' is uncertain
- Languages
- English
PDF page 6
Contents Preface Acknowledgments Introduction xxi xxiii XXV SECTION I: GENERAL INFORMATION 1 Numeric Conversions Hexadecimal 1.01. Hexadecimal to Decimal Number Conversion 3 1.02. Hexadecimal to Binary Number Conversion 4 1.03. Hexadecimal Addition Tables 5 1.04. Hexadecimal Multiplication Tables 7 Binary 1.05. Binary Number Conversions 8 1.06. Binary to Signed Decimal Number Conversion 9 Decimal 1.07. Decimal to Binary Number Conversion 10 1.08. Decimal to Hexadecimal Number Conversion 11 Data Formats 1.09. Two's Complements 12 1.1 0. Common 680x0 Data Formats 13 1.11. Common Macintosh Data Formats 14 1.12. Common String Formats 16 1.13. Common Memory Area Terminology 16 1.14. Binary Coded Decimal Number Format 17 Character Sets 1.15. ASCII Control Codes 18 1.16. ASCII Character Set 19 1.17. Apple Macintosh Character Set 20 Other 1.18. Digit Positions in Common Bases 22 1.19. Powers of Two 22 1.20. International Sort Ordering 23 1.21. Truth Tables for Logical Operations 25 SECTION II: OPERATING SYSTEM SOFTWARE, RESOURCES, AND FILE FORMATS 27 Resources Standard and Predefined Resources 2.00 1. Predefined System Packages 29 2.002. Predefined Cursors 29 2.003. Standard Package IDs 30 2.004. Standard Drivers and DAs 30 2.005. Standard Patches (PTCHs) 30 2.006. Standard Alert Icons 31 2.007. ROM Resources 31 2.008. Resource Numbering 32
- Languages
- English
PDF page 7
viii 2.009. Resource Attributes 2.0 I 0. Resource Types 2.0 11. actb, dctb, ictb Resource Formats 2.012. ALRT Resource Format 2.013. BNDL Resource Format 2.0 14. cctb Resource Format 2.015. CDEF Resource Format 2.016. cdev Resource Format 2.017. cdev Messsage Values 2.018. cdev Result Codes 2.019. cicn Resource Format 2.020. clut Resource Format 2.021. CNTL Resource Format 2.022. CODE Resource Format 2.023. crsr Resource Format 2.024. CURS Resource Format 2.025. Cursor Data Masks 2.026. DITL Resource Format 2.027. DLOG Resource Format 2.028. fctb Resource Format 2.029. FKEY Resource Format 2.030. FOND Resource Format 2.031. FONT Resource Format 2.032. FREF Resource Format 2.033. ICON Resource Format 2.034. ICN# Resource Format 2.035. INIT Resource Format International Resource Formats 2.036. INTL 0 or itlO Resource Format 2.037. INTL 1 or itll Resource Format 2.038. itlb Resource Format 2.039. KCHR Resource Format 2.040. KMAP Resource Format 2.041. mach Resource Format 2.042. MBAR Resource Format 2.043. MBDF Resource Format 2.044. mctb Resource Format 2.045. MDEF Resource Format 2.046. MENU Resource Format 2.047. NFNT Resource Format 2.048. nrct Resource Format 2.049. PAT Resource Format 2.050. PAT# Resource Format 2.051. PICT Resource Format 2.052. pitt Resource Format 2.053. ppat Resource Format 2.054. PRER Resource File Format 2.055. PRES Resource File Format 2.056. ROv# Resource Format The Programmer's Apple Mac Sourcebook 33 33 35 35 36 36 37 37 37 38 38 39 39 39 40 40 41 41 42 42 42 43 43 44 44 44 44 45 46 46 47 47 48 48 48 49 49 49 50 50 50 51 51 51 52 52 53 53
Reading notes: Table of contents numbering and page references are interleaved with resource format entries, making the reading order ambiguous. Some entries contain possible OCR errors such as 'Messsage' and irregular spacing in section numbers.
- Languages
- English
PDF page 8
Contents ix 2.057. scm Resource Format 53 2.058. SIZE Resource Format 54 2.059. Format 1 snd Resource Format 54 2.060. Format 2 snd Resource Format 54 2.061. snth Resource Format 55 2.062. STR Resource Format 55 2.063. STR# Resource Format 55 2.064. TEXT Resource Format 55 2.065. vers Resource Format 56 2.066. wctb Resource Format 56 2.067. WDEF Resource Format 57 2.068. WIND Resource Format 57 2.069. Resource File Fonnat 58 2.070. RMAKER Syntax 59 2.071. REZ Compiler Formats 60 2.072. Font ID Numbers 66 2.073. SysEnvirons Results 74 User Interface 2.074. Predefined Keys 75 2.075. Interface components 76 2.076. Common Icons 76 System and Finder 2.077. System Software History 77 2.078. Files Supplied with System 78 2.079. File Creators and Types 80 2.080. System Error Messages 88 2.081. System Software Result Codes 89 Disk and File Formats 2.082 Macintosh Disk Format 90 2.083. Microfloppy Sectors per Track 91 2.084. MacBinary File Format 91 2.085. MacPaint File Fonnat 91 2.086. PackBits File Format 92 2.087. PICT File Format 92 2.088. PicComments 92 2.089. PICT Data Types 93 2.090. PICT Opcodes 94 2.091. TIFF File Format 97 2.092. MFS Disk Format 100 2.093. MFS Volume Information 100 2.094. MFS Volume Allocation Map 101 2.095. MFS File Directory Format 101 2.096. HFS Disk Format 101 2.097. HFS Volume Information 102 2.098. HFS Boot Blocks Layout 103 2.099. B*-Tree Node Record Layout 103 2.1 00. Extents Key Record Layout 104 2.10 1. Catalog Key Record Layout 104 2.1 02. Directory Record Layout 105
Reading notes: OCR-style damage in 'Fonnat' and 'Fonnat' lines (possibly 'Format'), and 'scm Resource Format' entry may be garbled Reading order of the list is a table of contents; no primary heading is printed
- Languages
- English
PDF page 9
The Programmer's Apple Mac Sourcebook
X The Programmer's Apple Mac Sourcebook Installer 2.103. File Record Layout 2.1 04. Thread Record Layout 2.1 05. Installer Script Format 2.1 06. Installer File Spec Flags 2.107. Installer Resource Spec Flags HyperCard 2.1 08. HyperTalk Commands 2.109. HyperTalk Properties 2.11 0. HyperTalk Constants 2.111. HyperTalk Messages MPW 2.112. MPW Commands 2.113. MPW Command Status Values 2.114. MPW Command Terminators 2.115. Special Characters in MPW Commands 2.116. Expressions in MPW Commands 2.117. Editing Selection Operators in MPW Commands 2.118. MPW Tools 2.119. MPW MacsBug Exceptions 2.120. MPW MacsBug Commands 2.121. MPW Object File Format SECTION III: ROM TRAPS AND SYSTEM CALLS 3.001. ROM Versions System Traps 3.002. Trap Word Format 3.003. System Traps by Name 3.004. System Traps by Number 3.005. System Traps by Manager 3.006. System Traps and Routines That May Move or Purge Memory 3.007. Global Variables Toolbox Managers 3.008. Interface Toolbox Managers Resource Manager 3.009. Resource Manager Routines 3.010. Resource Manager Result Codes QuickDraw 3.0 11. QuickDraw Regions/Pixels/Pictures Routines 3.012. Miscellaneous QuickDraw Routines 3.013. QuickDraw GrafPort Routines 3.014. QuickDraw Pen/Line Drawing Routines 3.015. QuickDraw Cursor Routines 3.016. QuickDraw Text Drawing Routines Constants and Data Structures 3.017. Constants 3.018. Cursor Data Structure 3.019. QuickDraw GrafPort Data Structure 105 106 107 108 108 109 112 113 113 115 117 117 118 119 119 120 121 122 123 125 127 128 129 144 160 175 189 192 193 194 195 197 197 198 198 199 200 201 202
Reading notes: Table of contents entries contain irregular spacing and OCR-style artifacts such as "2.1 04." and "2.11 0.", so section numbering is uncertain. Page numbers are listed separately after the entries and their alignment to headings is unclear.
- Languages
- English
PDF page 10
Contents 3.020. QuickDraw Text Style (Styleltem) Equates 3.021. QuickDraw Point Data Structure 3.022. QuickDraw Rect Data Structure 3.023. QuickDraw Region Data Structure 3.024. QuickDraw Bitmap Data Structure 3.025. QuickDraw Color Equates (Old Style) 3.026. QuickDraw Picture Data Structure 3.027. QuickDraw Polygon Data Structure 3.028. QuickDraw Pen State Data Structure 3.029. QuickDraw Procs Data Structure 3.030. QuickDraw Fontinfo Data Structure 3.031. QuickDraw Pen Transfer Modes 3.032. QuickDraw Coordinate Plane 3.033. QuickDraw InitGraf Default Settings Color QuickDraw 3.034. Color QuickDraw Routines 3.035. RGBColor Data Structure 3.036. Color Table Data Structure 3.037. ColorSpec Data Structure 3.038. ColorGrafPort Data Structure 3.039. PixMap Data Structure 3.040. PixPat Data Structure 3.041. Color QuickDraw Transfer Modes 3.042. Color QuickDraw Arithmetic Drawing Modes 3.043. Color QuickDraw Cursor Data Structure 3.044. Color QuickDraw Icon Data Structure 3.045. GrafVars Data Structure 3.046. RGB Equivalents of Old QuickDraw Colors 3.047. QuickDraw Additive Color Table Color Manager 3.048. Color Manager Routines 3.049. ReqListRec Data Structure 3.050. SProcRec Data Structure 3.051. CProcRec Data Structure Font Manager 3.052. Font Manager Routines 3.053. Font Numbers 3.054. FontRec Data Structure 3.055. FMinput Data Structure 3.056. FMOutput Data Structure 3.057. Font Characterization Table 3.058. Font Metrics Data Structure 3.059. FamRec Data Structure 3.060. WidthTab1e Data Structure Script Manager 3.061. Script Manager Routines 3.062. Script ID Numbers 3.063. CharByte and CharType Values xi 202 203 203 203 204 204 205 205 205 206 206 206 207 207 208 209 209 209 210 211 211 212 212 213 213 213 214 214 215 216 216 216 217 218 218 219 219 220 220 221 222 223 224 225
Reading notes: Page numbers and section entries appear without clear hierarchical separation in the supplied copy.
- Languages
- English
PDF page 11
xii I 3.064. Transliterate Target Values 3.065. GetScript Verb Parameter Values 3.066. GetEnvirons Verb Parameter Values Toolbox Event Manager 3.067. Toolbox Event Manager Routines 3.068. Toolbox Event Priorities 3.069. Toolbox EventRecord Data Structure 3.070. Toolbox Event Codes 3.071. Toolbox Event Masks 3.072. Toolbox Event Modifier Flags Window Manager 3.073. Window Manager Routines 3.074. Window Types 3.075. WindowRecord Data Structure 3.076. CWindowRecord Data Structure 3.077. Aux WinRec Data Structure 3.078. WinCTab Data Structure 3.079. Mouse Locations in Windows 3.080. Window Part Identifiers for Color Tables 3.081. Window Definition Messages 3.082. Window Hit Messages Control Manager 3.083. Control Manager Routines 3.084. Control Types 3.085. Control Part Codes 3.086. ControlRecord Data Structure 3.087. AuxCtlRec Data Structure 3.088. CtlCTab Data Structure 3.089. Control Part Identifiers for Color Tables 3.090. Control Axis Parameter Values 3.091. Control Definition Messages Menu Manager 3.092. Menu Manager Routines 3.093. Menulnfo Data Structure 3.094. MCEntry Data Structure 3.095. Menu Color Information Table 3.096. MenuCRsrc Data Structure 3.097. Menu List Data Structure 3.098. MenuSelect ID/Item Return 3.099. Menu Definition Messages 3.1 00. Menu Definition Metacharacters 3.101. Menu Bar defProc Messages TextEdit 3.102. TextEdit Routines 3.103. TERec Data Structure 3.104. TextEdit Justification Codes 3.105. TEStyleRec Data Structure 3.1 06. STElement/LHEiement Data Structures The Programmer's Apple Mac Sourcebook 225 226 226 227 227 228 228 229 229 230 232 232 233 233 234 234 234 235 235 236 237 237 237 238 238 238 239 239 240 242 242 243 243 243 243 244 244 244 245 246 246 247 247
Reading notes: Source appears to be a table of contents, not advertising copy, so no headline or product data was identified.
- Languages
- English
PDF page 12
Contents 3.107. NuliSTRec Data Structure 3.1 08. TextStyle Data Structure 3.109. StScrpRec Data Structure 3.11 0. ScrpSTElement Data Structure 3.111. SetStyle Attribute Controls Dialog Manager 3.112. Dialog Manager Routines 3.113. Dialog Item Types 3.114. Dialog Item Lists 3.115. Dialog Color Table 3.116. Dialog Standard Item Constants 3.117. DialogRecord Data Structure 3.118. DialogTemplate Data Structure 3.119. AlertTemplate Data Structure 3.120. Alert StageList Data Structure Desk Manager 3.121. Desk Manager Routines 3.122. editCmd Parameters 3.123. DA Device Driver Format 3.124. DA Device Driver Control Routine Messages Scrap Manager 3.125. Scrap Manager Routines 3.126. ScrapS tuff Data Structure 3.127. Scrap Data Formats 3.128. Scrap Manager Result Codes Toolbox Utilities 3.129. Toolbox Utility Routines 3.130. FixedAndint Data Structure 3.131. Int64Bit Data Structure 3.132. SysEnvRec Data Structure 3.133. SysEnv Result Codes Package Manager 3. I 34. Package Manager Routines 3.135. Supplied PACKs 3.136. Binary-Decimal Package Routines 3.137. International Package Routines 3.138. IntlORec Data Structure 3.139. Int11 Rec Data Structure 3.140. International Routine Selectors 3.141. International String Comparison Result Codes 3.142. Standard File Package Routines 3.143. SFReply Data Structure 3.144. Standard File Routine Selectors 3.145. Standard File Predefined Constants 3.146. Standard File Resource IDs Palette Manager 3.147. Palette Manager Routines 3.148. Palette Manager Color Methods 3.149. Colorlnfo Data Structure xiii 247 248 248 248 248 249 250 250 251 251 251 252 252 252 253 254 254 254 255 256 256 256 257 258 258 258 259 259 260 260 261 262 263 263 263 264 265 265 266 266 267 268 268
Reading notes: Table of contents entries with running page numbers; some OCR-like spacing artifacts such as '3.1 08.' and 'Int11 Rec' may be damaged characters. Section numbering and reading order are not fully consistent across the listing.
- Languages
- English