0% found this document useful (0 votes)
142 views130 pages

Inside Macintosh X-Ref 1988

The document is a reference guide for Apple's official programming books related to the Macintosh family of computers, providing a comprehensive index and glossary. It includes details on system traps, global variables, and routines for memory management. Additionally, it outlines warranty information and copyright details for the publication.

Uploaded by

tmednich
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views130 pages

Inside Macintosh X-Ref 1988

The document is a reference guide for Apple's official programming books related to the Macintosh family of computers, providing a comprehensive index and glossary. It includes details on system traps, global variables, and routines for memory management. Additionally, it outlines warranty information and copyright details for the publication.

Uploaded by

tmednich
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 130

,_

Apple4t Inside Macintosh


Your key to Apple's
official programming
X-Ref
booksfor tbe Macintosh fl
family ofcomputers

3LOSSAR
ccess path: A desc
file is opened.
ccess .path buffer:
Job Titles

Charges

••

§0 Accounts
Inside Macintosh® X Ref

A
~
Addison-Wesley Publishing Company, Inc.
Reading, Massachusetts Menlo Par~ California New York
Don Mills, Ontario Wokingham, England Amsterdam Bonn
Sydney Singapore Tokyo Madrid San Juan
S APPLE COMPUTER, INC.
Copyright© 1988 by Apple Computer, Inc.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or
transmitted, in any fonn or by any means, electronic, mechanical, photocopying, recording, or
otherwise, without prior written pennission of Apple Computer, Inc. Printed in the United States
of America.

Apple, the Apple logo, AppleTalk, A/UX, HyperCard, ImageWriter, MacApp, and Macintosh, are
registered trademarks of Apple Computer, Inc.
APDA, Apple Desktop Bus, :t::'inder, and Stackware are trademarks of Apple Computer, Inc.
Helvetica and Times are registered trademarks of Linotype Co.
Microsoft is a registered trademark of Microsoft Corporation.
NuBus is a trademark of Texas Instruments.
POSTSCRIPT is a registered trademark of Adobe Systems Incorporated.
UNIX is a registered trademark of AT&T lnfonnation Systems.

Simultaneously published in the United States and Canada.

ISBN 0-201-13694-5
ISBN 0-201-19265-9
CDEFGH-AL-898
Third'printing, July 1988
Inside Macintosh X-Ref
WARRANTY INFORMATION

ALL IMPLIED WARRANTIES ON THIS MANUAL, INCLUDING IMPLIED


WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE, ARE LIMITED IN DURATION TO NINETY (90) DAYS FROM THE
DATE OF THE ORIGINAL RETAIL PURCHASE OF THIS PRODUCT.

Even though Apple has reviewed this manual, APPLE MAKES NO WARRANTY OR
REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THIS
MANUAL, ITS QUALITY, ACCURACY, MERCHANTABILITY, OR FITNESS FOR A
PARTICULAR PURPOSE. AS A RESULT, THIS MANUAL IS SOLD "AS IS," AND
YOU, THE PURCHASER, ARE ASSUMING THE ENTIRE RISK AS TO ITS
QUALITY AND ACCURACY.

IN NO EVENT WILL APPLE BE LIABLE FOR DIRECT, INDIRECT, SPECIAL,


INCIDENTAL, OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY
DEFECT OR INACCURACY IN THIS MANUAL, even if advised of the possibility of such
damages.

THE WARRANTY AND REMEDIES SET FORTH ABOVE ARE EXCLUSIVE AND IN
LIEU OF ALL OTHERS, ORAL OR WRITTEN, EXPRESS OR IMPLIED. No Apple
dealer, agent. or employee is authorized to make any modification, extension, or addition to this warranty.

Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or
consequential damages, so the above limitation or exclusion may not apply to you. This warranty gives
you specific legal rights, and you may also have other rights which vary from state to state.
Contents
1 Preface: About This Book
3 Index I: General Index
49 Index Il: Constants and Field Names
59 Appendix A: Routines That May Move or Purge Memory
63 Appendix B: System Traps
63 Sorted by Name
72 Sorted by Trap Word
83 Appendix C: Global Variables
89 Glossary
This book was written, edited, and composed on a desktop publishing system using
Apple® Macintosh® computers and Microsof~ Word. Proof and final pages were
produced on the Apple LaserWritei4 Plus Printer. POSTSCRJPT'l'M, the LaserWriter page-
description language, was developed by Adobe Systems Incorporated. The text is set in
Times• and the display type in Helvetica•.
PREFACE: ABOUT THIS BOOK

The Inside Macintoshf> X-Ref is your key to Apple's official programming books for the
Macintosh family of computers. The X-Ref gives you:
• a general index to eight books: all five volumes of Inside Macintosh, the Programmer's
Introduction to the Macintosh Family, the Technical Introduction to the Macintosh
Family, and Designing Cards and Drivers for the Macintosh II and Macintosh SE. The
general index also contains references to the Macintosh Technical Notes for
1984-1987.
• a complete list of routines that may move or purge memory
• a list of all Macintosh system traps
• a list of all Macintosh global variables
• a comprehensive Macintosh glossary
In addition, the Inside MacintoshX-Refcontains a new index, never before published,
listing all constants and field names in Inside Macintosh.
a
The books for which the Inside MacintoshX-Refis cross-reference are published by
Addison-Wesley as part of the Apple Technical Library. Macintosh Technical Notes may
be ordered from APDA, the Apple Programmer's and Developer's Association. For
information about APDA, see the inside back cover of this book.
The text of the Inside Macintosh X-Ref is also available from APDA in the form of
Macintosh text files on a 3.5-inch disk.

Preface: About This Book 1


INDEX I: GENERAL INDEX

The General Index lists page references for eight books plus theMacintosh Technical Notes for
1984-1987. The eight books include all five volumes of Inside Macintosh, the Programmer's
Introduction to the Macintosh Family, the Technical Introduction to the Macintosh Family, and
Designing Cards and Drivers for the Macintosh II and Macintosh SE.
The index entries for the different books are distinguished by letter codes, as follows:
Code Book Sample listing
I, II, m, IV, V Inside Macintosh 11-276 =Volume II, page 276
p Programmer's Introduction to the
Macintosh Family P-103 = page 103
T Technical Introduction to the
Macintosh Family T-78 =page78
c Designing Cards and Drivers for the
Macintosh II and Macintosh SE C8-12 = chapter 8, page 12
N Macintosh Technical Notes N2 = Technical Note 2

A acknowledgement C3-9, Cl3-8


ACount global variable 1-423
'actb' resource V-278
ABByte data type Il-276 action procedme 1-316, 324, 328
ABCallType data type 11-274 in control definition function 1-332
ABPaslntf Nl32 activate event 1-244, 279, P-33, T-37, 39, 50
ABProtoType data type 11-274 event message 1-252
ABridge low memory global N9 ActivatePaleue procedure V-162
ABRecHandle data type Il-274 active
ABRecPtr data type Il-274 control 1-313
ABusRecord data type 11-274 window 1-46, 270, 284, T-49
ALAP parameters Il-276 active end IV-5
ATP parameters II-287 active-low signal C2-8
DDP parameters II-281 ADB device table V-367
NBP parameters Il-298 ADBDataBlock V-369
ABusVars global variable 11-328 ADBOp function V-368
AC specifications for line drive (NuBus card) ADBRelnit procedure V-367, N143
C6-2 'ADBS' resource V-371
access modes V-376 ADBSetlnfoBlock V-370
access path 11-83, IV-94, T-158 AddComp procedure V-147
buffer Il-84, IV-96 AddDrive function N36, N108
accesses, non-aligned C3-16 additive primary T-100
accessing AddPt procedure 1-193
files P-130 AddrBlock data type Il-281
menus/menu items P-104 AddReference N2
/ACK C2-5, C3-4, CS-6, 7, C6-2 AddResMenu procedure 1-353, V-243, P-102
acknowledge cycle Cl-8 AddResource procedure 1-124
defined C2-7 AddResponse function 11-318, V-513

Index I: Generallndex 3
Inside Macintosh X-Ref

address allocatiom, Macintosh II C4-5 American National Standards Institute (ANSI) T-


address/data bus, Macintosh II Cl-7 227
address/data signals C2-5, C3-4 amplitude ofa wave II-223, T-171
addressmorT-189 Analog Signal Generator (ASG) T-226
address mapping, NuBus to Macintosh II C4-5 ~estors P-147
Address Mapping Unit (AMU) Cl-6, T-206 anchor point IV-5
address mark 11-211 AngleFromSlope function 1-476
addressspace T-192,202,203 AnimateEntry procedure V-164
Macintosh SE Cl3-16 AnimatePalette procedure V-164
Macintosh II C4-2 animating colors V-156
AddSearch procedure V-147 ANS Pascal P-140
/AD31-/ADO C2-5, C3-4, C6-2 ANumber global variable 1-423
AS register N25 ApFontID global variable 1-219, IV-31
AFP See AppleTalk Filing Protocol aposttophe T-158
AFPCommand function V-542 AppendMenu procedure 1-352, V-243, P-102
ALAP See AppleTalk Link Access Protocol At>pFlle data type II-58
ALAP fmme 11-264 'APPL' resource N29
ALAP protocol type II-264 Apple DCA filter T-180
Alarm Clock N85, T-38, 78, 131 Apple Desktop Bus V-361, T-5, 200, 229, 23
alarm clock event T-38 keyboards T-232
alarm setting T-132 Manager T-22
alert 1-401, 409, P-105, 109, 167, T-56, 59 mouse T-235
bo)( 1-401, T-59 routines V-367
closing P-107 Apple Developer Services P-157, T-257
color in P-106 Apple Extended Keyboard V-190, 192
color table V-278 Apple Hard Disk 20 T-226
guidelines 1-68 Apple Hard Disk 20SC T-9
opening P-107 Apple Hard Disk40SC T-9
posting P-109 Apple Hard Disk 80SC T-9
resource format 1-426 Apple key T-38
stages 1-409 Apple menu 1-54, N85
template 1-403, 424 Apple Numerics Manual P-xviii
types of P-106 Apple Personal Modem T-9
windows 1-401, 1-402 Apple Programmer's and Developer's
Alert function 1-418, V-284 Association (APDA) C-xvii, P-185,
AlertTemplate data type 1-424 T-256
AlertTHndl data type 1-425 Apple Sound Chip (ASC) Cl-3, T-142, 172,
AlertTPtr data type 1-425 217,222,225
alias II-266 Apple symbol T-38, 232
aliasing C 1-9 Apple Tape Backup 40SC T-9
A-line instruction T-25 Apple technical documentation T-257
Allocate function IV-143 AppleLine 3270 File Transfer program T-180
high-level 11-94 AppleShare V-380, NI 14, NI 15, Nl 16, T-9
low-level 11-113 drop folders N165
allocated block 11-10, T-147 foreground applications N167
allocation block II-79, IV-89 AppleShare File Server T-180
AllocContig function IV-143 AppleTalk T-9, 116, 133, 134, 179, 228, 246
high-level IV-112 address Il-265,T-181
low-level IV-143 architecture T-181
AllocCursor procedure V-75 drivers T-169, 176
'ALRT' resource V-278 AppleTalk Filing Protocol (AFP) V-523, T-183
altDBoxProc P-92 command mapping V-541

4 Index I: General Index


Index I: General Index

login command fonnat V-543 arrow cursor 1-163, 167


readcommandfonnat V-547 arrow global variable 1-147, 163
write command fonnat V-545 arrow keys IV-3, 57
AppleTalk Link Access Protocol 11-263, T-183 /AS C13-9
assembly language 11-306 ascent of a font 1-228
data reception 11-325 in TextEdit 1-378
Pascal 11-276 ASCII T-40, 180, 247
AppleTalk Manager 1-13, 11-261, 271, IV-229, codes 1-247, T-43
V-507, N9, N20, N132, T-22, 38, 131, keyboard input/printer output and P-164
181 ASPAbortOS function V-537
assembly language 11-304 ASPCloseAll function V-538
high level N121 ASPCloseSession function V-537
Pascal 11-273 ASPGetParms function V-538
protocols T-181 ASPGetStatus function V-540
AppleTalk PC card T-180 ASPOpenSession function V-536
AppleTalk Session Prorocol (ASP) V-522 ASPUsetCommand function V-539
AppleTalk system configurations V-519 ASPUserWrite function V-538
AppleTalk Transaction Protocol 11-266, 267, assembly language 1-83, IV-13, V-3 See also
T-183 lvlPW Assembler or specific version
assembly language 11-312 asserted, defined C2-7
Pascal 11-287 asynchronous communication 11-245, T-177
application T-26 asynchronous execution
files P-122, T-70 AppleTalk Manager 11-273
font 1-219, T-106 Device Manager 11-180
number T-132 File Manager Il-97, IV-115
heap 1-74, 11-9, P-46, T-142 at-least-once ttansaction Il-266
limit 11-17, 29 AtMenuBottom global variable V-249
zone T-145 ATP N9,N20
list IV-243, T-129 .ATP driver Il-264, 267, 289, 315, IV-229
parameters 11-20 ATPAddRsp function Il-295
space 11-20, T-142, 211 ATPCloseSocket function 11-291
window 1-270 ATPGetRequest function 1-293, N20
mouse event handling in P-36 ATPLoad function 1-290, N20
application-defined event T-39 ATPOpenSocket fwiction 11-290
applications, startup P-21 See also ATPParamBlockpackedrecord V-512
programs/programming ATPReqCancel function Il-293
ApplicZ.One function 11-32, N83 ATPRequest function 11-292
ApplLimit global variable Il-19, 21, 29, IV-257 ATPResponse function 11-296, N20
ApplScratch global variable 1-85 ATPRspCancel function Il-296
Apptz.one global variable 11-19, 21, 32, N2, ATPSnd.Request function 11-291
N83 ATPSndRsp function 11-294
AppParmHandle global variable Il-57 ATPUnload fwiction ll-290
Arabic Interface System T-111 AttachPH function 11-308, V-513
/ARB3-/ARBO C2-5, CS-2, 4, 5, 6, C6-2, 8 AttachVBL function V-567
arbitration C5-2, C6 attention cycle C3-10
arbittation contest, defined C2-7 defined C2-7
arbitration phase IV-286, T-175 attention-null cycle C3-11
arbitration signals C2-5 defined C2-7
arithmetic drawing modes V-59 attention-resource-lock cycle C3-11, CS-7
arithmetic operation T-184 auto-key
ARPANET T-247 event 1-244, 246, P-34, T-37, 39, 43
Arrow T-96 rate 1-246, 11-371, T-43, 132

Index I: General Index 5


Inside MacintoshX-Rej

threshold 1-246, 11-371, T-43, 132 bit-mapped disp1ay T-82


auto-pop bit 1-89 bit-mapped graphics P-24, 62, 66
automatic scrolling 1-48 BitAnd function 1-471
in TextEdit 1-380, IV-57 BitClr procedure 1-471
A/UX Operating System Cl-6, T-190 BitMap data type 1-144
communications T-246 BitMapType data type 11-287
document development applications T-246 BitNot function 1-471
features T-238 BitOr function 1-471
memory requirements T-241 bits, reserved P-163
software development environment T-245 BitSet procedure 1-471
system administration T-248 BitShift function 1-472
A/UX Toolbox T-243 Bits16 data type 1-146
AuxCtlHead global variable V-216 BitTst function 1-471
AuxCtlRec record V-217 BitXor function 1-471
AuxDCE packed record V-424 black global variable 1-162
AuxWinHead global variable V-200 blessed folder N20, N67
AuxWinList V-200 blind transfer T-227
AuxWinRecrecord V-201 block T-147
block (file) See allocation block
block contents II-10
block data transfers C3-12
B block device II-175, T-167
block header II-10
structure Il-24
B*-tree IV-168 block map 11-122, IV-162
BackColor procedure 1-174, N73 Block Servers N20
backgroundprocedure 11-153 blocks (of memory) 1-73, II-10, P-45, 47 See
BackPat procedure 1-167 also memory
BackPixPatprocedure V-74 fragmentation of P-47, 49
base line 1-227, T-94, 108 moving P-47
baud rate 11-246, 251, 254, T-177 obtaining P-51
BBU (Bob Bailey Unit) C12-4 releasing P-51
BDSElement data type 11-288 BlockMove procedure Il-44
BDSPtr data type II-288 'BNDL' resource N29, N48
BDSType data type 11-288 'BNDL' cdev resource V-327
BeginUpdate procedure 1-292, P-97, 167 B-NET T-247
Berkeley 4.2 BSD VAX implementation of PCC board sResource list V-437, C8-4, 17
P-140 Boardld C8-l 7
/BERR Cl-9, C13-8 boot blocks Nl13, Nl34, T-160 See also
/BG C13-8 system startup information
/BGACK C13-8 BootDrive N77
Binary-Decimal Conversion Package 1-12, 487, booting N124
IV-69, N90, T-21, 77 boundary rectangle 1-144, P-62
bit T-89 boundsRect P-161
image 1-143, P-64, T-89 /BR Cl3-8
manipulation 1-470 break II-246
map N41, Nll7, T-91 break/CTS N56
AppleTalk Manager Il-268 break table V-309
printing II-164 bridge 11-265, T-181, 183
QuickDraw 1-144 BringToFront procedure 1-286
rate T-177 broadcast service Il-264
structure (NuBus) C4-7

6 Index I: General Index


Index/: Generallndex

ButPtr global variable 11-19, 21, IV-257, N2, CacheCom N81


Nl4,N81 caching N81
BufTgDate global variable Il-212 CalcCMask procedure V-72
BufTgFBkNum global variable 11-212 CalcMask procedure IV-24
BuITgFFlag global variable 11-212 CalcMenuSize procedure 1-361
BufTgFNum global variable 11-212 Calculator T-78
bug CalcVBehind procedure I-297
FCBRec N87 CalcVis procedure 1-297
LaserWriter ROMs N123 CalcVisBehind procedure I-297
QD clip regions N59 calling a driver C9-7
SCSI N96 canBackground NISS
TEScroll on ·Plus N22 capacitance limits for a NuBus card C6-6
TextEdit N82, Nl31 Caps Lock key P-34, T-40, 42, 43
BuilclBDS function V-515 card, defined C2-7
BuildDDPwds procedure V-514 card-generic drivers C9-4
BuildLAPwds procedure V-514 cards (Macintosh SE). See also disk controller
bundle 11-85, III-11, N29, N48, T-128 card; Macintosh SE; SE-Bus expansion
bit N48 interke
resolll'Ce format m-12 accessing electronics from C13-10
bundling P-122 accessing 1/0 devices from C13-10
bus drivers and receivers C6-3 accessing RAM from Cl3-11
bus error T-189 connector ClS-4, Foldout 4
bus interface unit (BIU) architecture Cl-8 electrical design guide C13-2
bus locking C5-6 EMI guidelines for C13-18
defined C2-7 external connections for Cl5-2
bus parity signals C3-5 physical design guide for C14-2
bus parking C5-9 cards (NuBus). See also disk controller card;
bus timeout C3-10 Macintosh II; NuBus; NuBus Test Card;
bus transfer complete C3-10 SCSl-NuBus Test Card; video card
bus-free phase IV-285, T-175 connector C7-3, Foldout 1
button T-20, 53, 54 connector shield Foldout 2
dimmed T-55 driver design C9-2
Button function 1-259 driver-supported C3-17
button type of control 1-311, 404 electrical design guide C6-2
Byte data type 1-78, C8-2 EMI guidelines for C6-10
byte lane mapping C4-8 firmware C8-2, 4
ByteLanes field C8-6 96-pin plug connector for C7-3
byte structure (NuBus) C4-7 peer C3-17
byte swapping C4-7 physical design guide C7-2, Foldout 1
power control from Cl-2, C6-3
card slot identification signals C3-2
card-specific drivers C9-3
caret 1-376, 379
c blink time 1-260, 11-371, T-132
CaretTime global variable 1-260
catalog tree file IV-171, T-161
C See :MPW C or specific version CatMove function IV-157
C Compiler P-140, T-245 caution alert P-106, 107, T-59
C SANE Library P-140, 141 CautionAlert function 1-420, V-284, P-109,
C8M C13-8 167
Cl6M Cl3-8 CCR N2
cache, 68020 Nl 17-20 See also data caching CCrsr record V-62

Index I: General Index 7


Inside Macintosh X-Ref

'cctb' resomce V-221 Cleon record V-64


'CDEF resource V-221 ClnfoPBPtt data type IV-117
cdevs V-324 ClnfoPBRec data type IV-125
function V-329 ClnfoType data type IV-117
resource V-327, 329 Clascal environment P-140
cell IV-262, T-62 class P-147
certified developer status P-157 classic Macintosh T-2
CGrafPort record V-49, P-74 Clear To Send (CTS) T-178
Chain procedure Il-59, N52 OearMenuBar procedure 1-354, V-247
ChangedRe.nuce procedure 1-123 click See mouse-down event
channel T-173 click loop routine 1-380
character List Manager IV-2<>6
codes 1-246, T-40 TextEdit IV-58
procCMing T-42 Clikloops N82
device 11-175, T-167 clikStuff N127
image 1-227, T-108 clip region N59
keys 1-33, 246, T-40, 42 ClipAbove procedure 1-296
offset 1-228 Clii>board 1-58, T-20, 26, 60, 63 See also
origin 1-228, T-108 scrap
position 1-375 clipping region ofa grafPort 1-149, 161, T-86
rectangle 1-228, T-109 ClipRect procedure 1-167
set 1-247, T-112 clipRgn of a grafPort 1-149
style 1-151, T-93 /CLK C2-5, 6, C3-2, C6-8
of menu items 1-348, 360 clock chip, Il-369, IV-251, T-131
width 1-173~ 228, T-109 hardware m-36
CharByte function V-306 · clock rate P-163
CharExtta procedure V-77 clock signal C3-2
Chars data type 1-384 close box See go-away region
CharsHandle data type 1-384 Close command 1-56
CharsPtr data type 1-384 Close function, high-level IV-112
Char2Pixel function V-308 Device Manager Il-178
CbarType function V-306 . File Manager 11-94
CharWidth function 1-173, N26, N82 Close function, low-level IV-144
check box 1-312, 404, T-20, 34, 53, 54 Device Manager Il-184
dimmed T-55 File Manager Il-114
check exception T-189 close routine
check made in a menu 1-347, 358 of a desk accessory 1-446
Check Register Against Bounds (CHK) ofadriver Il-187, 193
insttuction T-189 CloseAlPSkt function 11-316, V-513
Checkltem procedure 1-358 CloseCPort procedure V-68
CheckRslRecord NI 73 closed device driver 11-176, T-169
Checksumming N7 closed file Il-83, IV-94, T-158
CheckUpdate function 1-296 CloseDeskAcc procedure 1-440
Chinese Interface System T-111 CloseDialog procedure 1-413, P-107, 167
Chooser IV-216, T-26, 78, 130, 133, 228 CloseDriver fwtction 11-178
changes to V-428 ClosePgon procedure 1-190
communication with IV-217 ClosePicture procedure 1-189, P-86, 167
operation of IV-219 OosePoly procedure 1-190
window T-133 ClosePort procedure 1-164
writing a driver to run under IV-221 CloseResFile procedure 1-115, Nl 16
chunky pixel image V-54 CloseRgn procedure 1-182, P-85, 167
'cicn' resource V-65, V-78, V-80, P-88 CloseSkt function 11-312, V-513

8 Index I: Generallndex
Index I: General Index

CloseWD function IV-158 Color21ndex function V-141


CloseWindow procedure 1-283, P-96, 98, 167 command files P-137
closing command phase IV-286, T-175
alerts P-107 Command symbol T-38
dialogs P-107 Command-C T-47
edit record P-118 Command-= T-47
files P-132 Command-key P-34, T-40, 43, 46, 62, 123,
windows P-95 129,232
ClrAppFiles procedure 11-58 combination See keyboard equivalent
clump IV-124, 167 equivalent See keyboard equivalent
clump size IV-124, 167 Command-period Il-154
'clut' resource V-78, 81, P-88 Command-+ T-47
CMovePBPtr data type IV-117 Command-Shift-number 1-258, T-38, 47
CMovePBRec data type IV-127 Command-Shift- I T-47
CmpStting function 11-377 Command-Shift-2 T-47
CMY color model V-43, 171 Command-V T-47
CMY2RGB procedure V-175 Com~and-X T-47
code, self modifying Nl 17 Command-Z T-47
CODE segment P-155, T-21 commands 1-51, 341
colon T-158 compacting T-148
color V-14, T-100 compaction, heap 1-74, 11-12, 39
alerts P-106 CompactMem function 11-39, N51
controls P-110 compatibility P-8, 160
dialogs P-106 future machines N2, NI 17
drawing 1-158, 173 guidelines IV-xii, V-1
menus V-227, P-105 HFS N44
printing N73 large-screen displays NIOO
table V-46 Standard File N47
animation V-153 completion routine
color description, in graphics port record P-73 Device Manager 11-180, 181
color graphics port T-94 File Manager 11-97, 99, IV-115
Color Look-Up Table (CLUT) V-46, 134, T-97 Sound Driver 11-231
Color Manager, V-133, T-19, 101 compliance categories C3-17
routines V-141 CompProc procedure V-147
color model conversion routines V-174 configuration flies Nll5
Color Picker Package V-171, T-77, 100, 130, ConfirmName function 11-323, V-513
134 connector drawings C7-3, C14-6, 9
dialog box T-135 electrical description of NuBus C6-2
routines V-174 electrical description of SE-Bus C13-2
Color QuickDraw V-39, P-60, 87, T-83, 97, 99 connector pin usignments C6-5, Cll-18,
See also QuickDraw C13-2
cursors and P-88 content region ofa window 1-271, P-92, T-51
graphics ports and P-74 contextdependence T-112
routines V-<>6 control T-20,34,48,53
text and P-88 highlighted T-55
Color: Toolbox T-97 inactive T-55
color wheel T-135 control character T-42
ColorBit procedure· 1-174 control color table V-218
Colorlnfo record V-159 control definition ftmction 1-314, 328, IV-53,
coloring with CopyBits Nl63 V-220, T-54
ColorSpec record V-49, 136 control definition ID 1-315, 328
ColorTablerecord V-48, 135 Control function

Index I: General Index 9


Inside MacintoshX-Ref

high-level 11-179 Create function


low-level Il-186 high-level Il-90, IV-112
Control key V-21 low-level Il-107, IV-145
Control Manager 1-11, 309, IV-53, V-215, CreateResFile procedure 1-114, NlOl
P-110, 112,T-20,48,53,97 creators P-125, T-126, 158
routines 1-319, IV-53, V-221 creator of a file m-9
Control Panel V-323, T-43, 59, 78, 122, 130, 'crsr' resource V-63, 78, P-88
185, 210, 233 Crsl'I'hresh global variable 11-372
control record 1-316 cSpecArray V-49, 136
control routine C9-14 cString data type C8-2
of a desk accessory 1-446 CTab2Palette procedure V-165
of a driver 11-187, 194 CtlCTab record V-218
control signals C2-5, C3-4 CurActivate global variable 1-280
control template 1-315, T-54 CurApName global variable 11-58
resource format 1-332 CurApRefNum global variable 11-58
ControlHandledata type 1-317 CurDeactive global variable 1-280
ControlPtr data type 1-317 CurDirStore global variable IV-72, N80
Contro1Record data type 1-317 CurJTOffset global variable Il-62
controls 1-65, 311, P-110 CurMap global variable 1-117
color in P-110 CurPageOption global variable Il-60
defining your own 1-328, P-112 CurPitch global variable 11-226, 232
in a dialog/alert 1-404 current directory button IV-72
infonnation 11-176 current heap zone 11-10, 31
modifying P-113 current limits for a NuBus card C6-6
multiple lines of text in IV-53 current resource file 1-1OS, 116
part codes for P-111 CurrentAS global variable 1-95, Il-19, 21, 386
removing P-112 N25,Nl36
coordinate origin T-88 CurResFile function 1-116
coordinate plane 1-138, T-87 CmsHandle data type 1-474
coordinate systems, graphics ports and P-75 cursor 1-146, T-46, 95, 186
Copy T-47, 63 Color QuickDraw and P-88
copy protection Nll7, P-163 data type 1-146
CopyBits procedure 1-188, V-70, N41 1 N55, level 1-167, P-84
N120,N163 QuickDraw routines 1-167, P-84
CopyMask procedure IV-24, V-71 standard cursors 1-147, 474
CopyPixMap procedure V-70 utility routines 1-474
CopyPixPat procedure V-73 CursPtr data type 1-474
CopyRgn procedure 1-183 CurStackBase global variable 11-19, 21, 358
CouldAlert procedure 1-420, V-285 'CUST' resource Nl35
CouldDialog procedure 1-415, V-284 customizing ancestors P-147
CountlResources function IV-15 Cut T-47, 63
CountlTypes function IV-15 cut and paste 1-59, T-63
CountADBs function V-369 in TextEdit 1-385
CountAppFiles procedure 11-57 intelligent 1-63
CountMltems function 1-361 CWindowRecord V-199
CountResources function 1-118 cycle (NuBus), defined C2-7
CountTypes function 1-117
courteous colors V-154
CProcRec record V-146
CPUFlag variable V-348, N2
CQDProcs record V-91
CRC field CS-7

10 Index I: General Index


Index I: General Index

D In an alert 1-69, 401, 424


default directory IV-100
default error message T-190
DO-DIS C13-9 default volume 11-80, IV-100
DABeeper global variable 1-411 getting See GetVol function
dangling pointers 1-75 setting See SetVol fllllction
DAStrings global array 1-421 Defense Data Network T-247
data caching C3-17 defeaed printing T-115
data cycle, defined C2-8 Defened Tut Manager V-465
data bits 11-245, T-177 routine V-467
data buffer 11-83, 176, IV-95, T-158 DeferredTut ream v466
data fork 1-105, 11-81, IV-93, P-122, T-68, 154 definition procedure T-36
data frame T-183 DefltStack global variable Il-17
data mark 11-211 DefOSRec record V-355
data phase IV-286, T-176 DefStartRec V-353
Data Servers N20 DefVCBPtr global variable 11-126, IV-178
Data Tenninal Ready line IV-225, 248 DetVideoRec V-354
data transfer (NuBus) C3-2 delay N2, P-164
timing C6-7 Delay procedure 11-384
data types 1-86, C8-2 DelComp procedure V-147
datagram 11-265, T-183 Delete fimction
loss recovery 11-268 high-level Il-97, IV-113
Datagram Delivery Protocol 11-265, N9, T-183 low-level Il-119, IV-147
assembly language 11-308 DeleteMenu procedure 1-354, V-244, P-103,
Pascal 11-281 104, 167
date operations 11-377 DelMCEntries procedure V-238
date/lime recont 11-377 DelMenultem procedure IV-56, V-244
DateFonn data type 1-504 DelSearch proce.dure V-147
DateTimeRec data type II-378 DeltaPoint function 1-475
Date2Secsprocedure 11-379 Dequeue function 11-383
dBoxProc P-92 dereferencing a handle 11-14, P-46
DC specifications for line drive (NuBus card) DeRez P-140, T-80
C6-2 derived font T-104
'dctb' resource V-278 descendants P-147
DCtJEntry data type 11-190 descent of a font 1-228
DCtlHandle data type 11-190 Designing Cards and Drivers for the Macintosh n
DCtlPtt data type 11-190 and Macintosh SE P-xviii
DDP See Datagram Delivery Protocol desk accessory 1-437, NI, NS, N23, P-5, T-20,
DDPCloseSocket function Il-282 26, 47, 130, 169
DDPOpenSocket function 11-282 out-of-memory conditions and P-57
DDPRdCancel function 11-284 window, mouse event handling in P-35
DDPRead function 11-283 writing your own 1-443
DDPWrite function 11-283 Desk Manager 1-12, 435, T-20, 39, 169
dead key T-43 routines 1-440
debugger, Macintosh Plus ROM N38 desk scrap 1-453, IV-61, T-60, 63
debugger, FICEY N145 data types 1-454
debugging N7, N51 format 1-462
declaration ROM V-437, C8-2, C9-4, 6, 11, routines 1-457
T-210 DeskHook global variable 1-282, 288
Dec2Str N90, P-139, 151 DeskPattern global variable 1-282
default button T-56 desktop 1-32, 269, T-34
In a dialog 1-67, 400, 407 interface T-34

Index/: Generallndex 11
Inside MacintoshX-Re/

Desktop file m-10, IV-243, N29, N48, T- dialog record I-403, 407, T-57
124, 127, 129 dialog template 1-402, 403, T-57
destination rectangle I-374, P-116 resource format 1-425
DetachPH function 11-308, V-513 dialog window I-401
DetachResomce procedure I-120 dialogs, modeless NS
Developer Services (Apple) P-157 DialogPeek data type I-408
development tools P-136 DialogPtr data type 1-407
device 11-175, T-167 DialogRecord data type 1-408
Device~ V-366 DialogSelect function 1-417, N34, P-108, 168
device control entry Il-189, IV-215 DialogTemplate data type 1-423
device driver I-13, ll-175, N56, T-22, 168 DialogTilndl data type I-424
event I-244, T-38, 39 DialogTPtr data type 1-424
for a desk accessory I-443 Dmad.Mount function 11-396, N70, P-34, 168
structure Il-187 DiffRgn procedure 1-184
writing your own II-193 DIFonnat function 11-398
device handler ID V-365 DILoad procedure 11-396
device information, in graphics port record P-68 dimmed
deviceID IV-217 control I-313
devicel/O menu item 1-342, 343
Macintosh SE C12-6 menu tide 1-342
Macintosh II Cl-5 Dlnfo data type IV-105
Device Manager I-13, Il-173, IV-213, V-421, DiICreate function IV-146
T-22, 168, 189 direct devices V-134
routines 11-177, V-427 directory IV-89, T-155
device control entry access Il-189 ID IV-92
for writing drivers 11-194 name IV-90
high-level 11-178 record IV-172
low-level 11-180 Directoiy()ffset field C8-8
device package IV-217 dirID N77
device partition map IV-292 disabled
device resource file T-133 dialog/alert item I-405
Device Servers N20 menu 1-342, 358
DeviceList V-118 menu item I-349, 358
diaeresis T-158 Disableitem procedure 1-358, V-245, P-104,
dial I-312, T-54 168
dialog box I-66, 399, P-105, T-14, 47, 53, 56 Discipline Nll7
Close IV-10 discontinuous selection 1-40
closing P-107 disk controller card (for Macintosh SE) Cl6-2.
creating your own IV-74 See also cards (Macintosh SE); Macintosh
color in P-106 SE
editing text in P-110 address allocation C16-9
handling events in P-107 block diagram C16-3
opening P-107 bus control signals C16-5
types of P-106 device select decode~ C16-9
dialog color table V-278 DMA operations C16-8
dialog filter N34 Macintosh SE interface logic C16-5
dialog hook N47 PIO timing C16-7
dialog item list V-279 system configuration C16-2
Dialog Manager I-12, 397, IV-59, V-277, disk controller card (for Macintosh Il) Cl0-15.
P-105, 107, T-20,48,54,56,97, 188 See also cards (NuBus); Macintosh II;
routines I-411, IV-59, V-283 NuBus
dialog pointer 1-407 block diagram Cl0-17

12 Index I: General Index


Index I: General Index

device select decode addresses Cl0-20 DIUnload procedure Il-396


OMA operations C16-8 DIVerify function Il-398
memory map and the declaration ROM Cl0- divide instruction T-189
20 DIZero function Il-399, N70
NuBus interface logic Cl0-18 dkGray global variable 1-162
RAM access signals Cl0-18 DlgCopy procedure 1-418, P-110
system configuration Cl0-15 DlgCut procedure 1-418, P-110
disk drive T-159, 227 DlgDelete procedure 1-418, P-110
Disk Driver 1-13, Il-209, IV-223, V-469, T-22, DlgFont global variable 1-412
160, 163, 169, 226 DlgHook function IV-75
advanced Control calls IV-223 SFGetFtle 1-526
Device Manager calls Il-213 SFPutFile 1-522
routines Il-214 DlgPaste procedure 1-418, P-110
Disk Initialimtion Package 1-13, Il-393, IV- 'DLOG' resource V-278
239, N70, T-23, 77, 154, 157, 162 DMA Cl2-6
routines Il-396 DMA Acknowledge signal IV-252
disk-inserted event 1-244, P-34, T-37, 39, 186 DoCaret N82
event message 1-252 document files P-122, T-71
responding to 1-257 document window 1-269, 279, T-48
disk interface Ill-33, T-226 overlapping T-50
disk speed controller T-142 regions and frame T-52
disk-switch dialog Il-80, T-159 Documenter's Workbench (DWB 2.0) T-246
DiskEject function Il-214 documentProc P-92
dispatch table See trap dispatch table DoDraw N82
display rectangle 1-406 double-click 1-37, 255
display routines P-60 See also Color double-click time 1-260, Il-371, T-132
QuickDraw; QuickDraw DoubleTime global variable 1-260
display screen T-167 DoVBLTask function V-568
DispMClnfo procedure V-239 dQDrvSize N36
DisposCCursor procedure V-75 draft printing Il-151, 153, T-115
DisposCicon procedure V-76 DraftBi~ Nl28
DisposConttol procedure 1-321 drag delay V-24
DisposCTable procedure V-78 drag region of a window 1-271, 289, P-92, T-51
DisposDialog procedure 1-415 DragControl procedure 1-325
DisposeDialog P-107, 168 DragGrayRgn function 1-294, V-209
DisposeConttol procedure 1-321, P-168 DragHook global variable
DisposeMenu procedure 1-352, P-103, 168 Control Manager 1-324, 326
DisposePalette procedure V-162 Window Manager 1-295
DisposeRgn procedure 1-182 DragPattem global variable
DisposeWindow procedure 1-284, P-96, 98, 168 Control Manager 1-324, 326
DisposGDevice function V-123 Window Manager 1-288, 289, 290, 295
DisposHandle procedure 1-76, 80, Il-33, N8, P- DragTheRgn function 1-295
51, 168 DragWindow procedure 1-289, P-98, 169
DisposMenu procedure 1-352 DRAM See Dynamic RAM chips
DisposPixMap procedure V-70 dRAMBased N71
DisposPixPat p~W'e V-73 DrawChar procedure 1-172, N26, P-83, 169
DisposPtrprocedure 1-75, 79, Il-36, P-51, 169 DrawControls procedure 1-322, P-169
DisposRgn procedure 1-182 DrawDialog procedure 1-418
DisposWindow procedure 1-284 DrawGrowlcon procedure 1-287, P-169
dithering V-57 drawing 1-155
'DllL' cdev resource V-327 color 1-158, 173
'DITL' resoun:e V-278 DrawJust pn:>eedure V-310

Index I: General Index 13


Inside MacintoshX-Re/

DrawMenuBarprocedure 1-354, V-244, P-101, edit record 1-374, P-115


104, 169 closing/opening P-118
DrawNew procedure 1-296 editing text in dialogs P-110
Draw lControl procedure IV-53 'EFNT resource N84
DrawPicture procedure 1-190, N21, N35, N59, 800Kdisk T-163
P-86, 169 SOOK floppy disk drive T-227
DrawString procedure 1-172, N26, P-83, 170 SOOK volume T-160, 162
DrawText procedure 1-172, P-83, 170 Eject function
Drive button T-157 high-level 11-90, IV-108
drive, defined C2-8 low-level Il-107, IV-135
drive number Il-80, IV-93, T-159 ejection, premature N106
drive queue Il-127, IV-181, N36, T-159 electrical design guide
driver descriptor map IV-292 for Macintosh SE cards Cl 3-2
driver 1/0 queue Il-180, 191 for NuBus cants C6-2
drivername Il-176 electrical schematic
driver reference number Il-176 NuBus Test Card Foldout 3
drivc.T-supported cards C3-17 SCSl-NuBus Test Card Cl0-14
drivers N71 See also device driver Elementary Functions Package T-184
calling C9-7 Elems68K See Transcendental Functions
card-generic C9-4 Package
card-specific C9-3 Elems881 N146
design of C9-2 ellipsis T-45
installing at startup C9-5 EMI guidelines
video C9-10 for external connections (Macintosh SE) Cl 5-
drives, foreign N28 3
DriveStatus function Il-215 for Macintosh SE cards Cl 3-18
driving edge, defined C2-8 forNuBuscards C6-10
DrvQEI data type Il-127, IV-181, N36 empty handle 1-76, Il-14, 40
DrvQHdr global variable Il-128, IV-182 EmptyHandle procedme 11-40
Drvrlnstall N108 EmptyRect function 1-176
DrvrRemove N108 EmptyRgn function 1-186
DrvSts data type 11-215 enabled
DSAlertRect global variable Il-362 dialog/alert item 1-405
DSAlertTab global variable 11-359, 362 menu 1-358
DSErrCode global variable 11-362 menu item 1-358
/DTACK C13-9 Enablelt.em procedure 1-358, V-245, P-104, 170
DTinstall function V-467 end-of-file Il-81,IV-93
DTR See Data Terminal Ready line End-of-line N127
DXInfo data type IV-106 end-of-message flag 11-270
Dynamic RAM chips IV-246 EndUpdate procedure 1-293, P-97, 170
Enqueue procedure 11-382
Enter key T-56
entity name 11-265, 298
E EntityName data type 11-298
EntityPtr data type 11-298
Environs procedure 11-385, IV-236
E clock Cl3-8 equal-tempered scale 11-237
Echo Protocol (EP) V-522 EqualPt function 1-193
echoer V-522 EqualRect function 1-176
echoer socket V-522 EqualRgn function 1-185
Edit menu 1-58 Equ81String function 11-377
and desk accessories 1-441, 447 ErueArc procedure 1-180

14 Index I: General Index


Index I: General Index

EraseOval procedure 1-178 Extended Protocol Package (XPP) driver V-524


EruePoly procedure 1-192 extended selection 1-39
EraseRect procedure 1-177 In TextEdit 1-384
EraseRgn procedure 1-186 extent IV-170
EraseRoundRect procedure 1-179 descriptor IV-171
error C3-10 JeCOl'Cl IV-171
error codes m-205, V-572, P-40, 129, 162 extents tree file IV-170, T-161
error number See result code external connections, for Macintosh SE cards
error reporting ClS-2
Memory Manager IV-80 external file system Il-128, IV-182
Resource Manager IV-18 external reference 1-95
ErrorSound procedure 1-411 ExtStsDT global variable Il-199
Escape key V-21
'ETAB' resource N84
EtherTaJk T-180, 247
event 1-243, T-19, 27, 36 F
code 1-249
mask 1-253, T-37
message 1-249 family character-width table IV-39
posted T-36 family number IV-30
priority 1-245, T-39 family record IV-36
record 1-249, T-38 familyresomce IV-43
system T-39 family style-property table IV-38
types 1-244, T-37 FamRecdata type IV-36
event-driven programming P-7, T-27, 29, 36 FCB See file control block
Event Manager, Operating System 1-13, Il-65, FCBPBPtr data type IV-117
IV-85, P-30 FCBPBRec data type IV-179
routines Il-68, IV-85 FCBSPtr global variable Il-127, IV-179
Event Manager, Toolbox 1-11, 241 'FCMT resource N29
routines 1-257 'fctb' resource V-183, 184
event masking P-39 FCO-FC2 C13-8
event queue 1-243, P-39, T-36, 40 FdFJags N40
structure Il-70 Fedit T-1 (>()
event recording see journaling mechanism Fetch function Il-194
EventAvail function 1-259 Fetch procedure N-178
EventQueue global variable Il-71 FFComment N29
EventRecord data type 1-249 FFSynthPtr data type 11-228
events/event loop P-30, 107 See also specific FFSynthRec data type 11-228, N19
event type FHeadetRec packed record V-449
EvQEl data type Il-71 fields (of objects) P-144
exactly-once ttansaction Il-266 53C80 SCSI Cl-3
example program 1-13 5380 SCSI C12-4
exception 11-195, N2, T-217 file 11-79, 81, IV-89, 93, P-122, T-68, 154
exception vector m-17, T-141 access modes V-376, P-130, T-158
exclusive-OR T-86 assumptions about a P-162
ExitToShell procedure Il-59, N64 catalog See hierarchical file directory
expansion cards. See cards closing P-132
expansion connector. See connector command P-137
expansion slot T-209 creating P-131
explicit colors V-156 creator m-9
exponential functions Il-407 directory II-79, 122, IV-89
/EXT.DTK. C13-8 extent T-161

Index I: General Index 15


Inside Macintosh X -Ref

ftlter N47 FindControl function 1-323, P-98, 114, 170


1/0 queue 11-97, 124, IV-115, 175 FmdDltem function IV-60, Nl 12
Icon 11-85, m-10, IV-105 Finder N114, N116, P-21, T-15, 26, 122, 124,
menu 1-55 135, 159, 161, 166
name 11-81, IV-90, N107 default icon T-128
number 11-122, IV-163 flags N40
object T-129 infonnation 11-55, IV-104, T-116, 126, 127,
opening P-131 151
reading from P-131 interface II-55, 84, m-7, IV-243
record IV-172 screen T-124
reference ID-10, T-128 Finder-related resources m-10
resource fonnat m-12 FinderName global variable ll-59
source P-139 FmdWindow function 1-287, P-35, 114, 170
system N24, N44, N66, N94, N102 FindWindow procedure V-208
tags 11-212 FmdWord procedure V-309
buffer 11-212 Flnfo data type 11-84, IV-104
type III-9, P-124, T-126, 127, 158 FlnitQueue procedure II-103, IV-128
writing to P-132 firmware (NuBus card) C8-2
file control block 11-126, IV-94, 178, Nl02, sample code CS-20
T-158, 161 FixATan2 function IV-65
buffer T-161 FixDiv function IV-64
File Manager 1-13, 11-77, IV-89, P-124, 129, Fixed data type 1-79
T-16, 22, 39, 124, 154, 158, 168, 189, fixed devices V-134
226 fixed-point
alert T-190 arithmetic 1-467
routines numbers 1-79
for queue access 11-125, 126, 128, IV-176, fixed-width font 1-228, T-109
178, 181 FixMul function 1-467
high-level 11-88, IV-106 FixRatio function 1-467
low-level 11-97, IV-115 Fi:xRound function 1-467
File Manager extensions V-375 Fix2Frac function IV-65
File menu P-125 Fix2Long function IV-65
File Open dialog box P-126 FJ.X2Smal1Fract function V-175
File Save dialog box P-128 Fix2X function IV-65
File Servers N20 'FICEY' resource N3
file-control-block buffer 11-126, IV-178 FlashMenuBar procedure 1-361, V-246
ftleFilter function 1-524 flat file directory IV-89, 163, T-156
filename T-158 flat file system T-155
FillArc procedure 1-181 Floating-Point Arithmetic and Transcendental
FillCArc procedure V-69 FunctionsPackages V-595
FillCOval procedure V-69 Floating-Point Arithmetic Package 1-13, 11-403,
FillCPoly procedure V-69 T-23, 77, 184
FillCRect procedure V-69 floating-point error T-190
FillCRgn procedure V-69 floating-point operation T-208
FillCRound.Rect procedure V-69 Flush command V-363, 364
FillOval procedure 1-178 FlushEvents procedure 11-69, P-31, 170
FillPoly procedure 1-192 FlushFile function 11-114, IV-144
FillRect procedure 1-177, P-80, 170 FlushVol function P-132, 133
FillRgn procedure 1-187 high-level 11-89, IV-108
FillRoundRect procedure 1-179 low-level 11-105, IV-133
filterProc function 1-415 FMeb'ic data type IV-32
financial functions 11-407 FMinput data type 1-224

16 Index I: General Index


Index/: Generallndex

FMOutPtr data type 1-227 four-tone synthesizer U-223, 226, T-170, 172
FMOutput data type 1-227 FPMove N137
FMSwapFont function 1-223 FP68K See Floating-Point Arithmetic Package
FmtDefaults global variable IV-241 FracCos function IV-64
'FOBJ' resource N29 FracDiv function IV-64
folder Il-85, IV-105, T-155 FracMul function IV-64
'FOND' resource IV-29, V-181, 185 FracSin function IV-64
font T-69, 78,93, 102 FracSqrt function IV-64
font association table IV-38, T-105 Fract type IV-63
font characterimtion table 1-225 FractEnable global variable IV-32, N72, N92
Font/DA Mover IV-31, N6, N23, T-77, 103, fractional character widths IV-33, T-104, 107
105 fractional pen positioning V-84
Font Manager 1-11, 215, IV-27, V-179, T-19, Frac2Fix function IV-65
72, 102, 187 Frac2X function IV-65
communication with QuickDraw 1-224, IV- fragmentation N39, P-47, 49
33 fmme T-177
data sttuctures IV-34 ALAP Il-264
routines 1-222, IV-31, V-180 check sequence Il-265
Font menu 1-60, 353 header Il-264
'FONT' resource IV-29, 44, V-181, N30 picture 1-158
fonts 1-60, 151, 217, IV-29, N92 pointer (stack) 1-96
characters 1-220 serial communication 11-246
family IV-29, T-104 stack 1-96, 11-17
format 1-227 trailer 11-264
height 1-228, ·T-109 window 1-271
number 1-217, 219, IV-30, T-102 FrameArc procedure 1-180
QuickDraw and P-82 FrameOval procedure 1-177
record 1-230, IV-35 FramePoly procedure 1-192
rectangle 1-228 FrameRect procedure 1-176
resource IV-42, T-104 FrameRgn procedure 1-186
format 1-234 FrameRoundRect procedme 1-178
ID 1-234 framing error 11-246
scaling 1-220, IV-33, T-104, 106, 119 free block T-147
script V-298 free memory block 11-10
size 1-153, 217, T-103 free-fonn synthesizer 11-223, 228, T-170, 172
variable IV-56 free-form wave T-171
Fontinfo data type 1-173 FreeAlert procedure 1-420, V-285
FontMetrics procedure IV-32 FreeDialog procedure 1-415, V-284
FontRec data type 1-231 FreeMem function 11-38
FontScript function V-314 FreeWave data type 11-228
FontSize menu 1-61 'FREF cdev resource V-327
Font2Script function V-315 'FREF resource N29, N48
ForeColor procedure 1-173, N73 frequency 11-223, T-171
fork 1-105, Il-81, IV-93, T-68 FrontWindow function 1-286
format block V-437, CS-4, 5 FScaleDisable global variable 1-222, IV-32,
Format field CS-7 N92
fonnauing hierarchical volumes IV-240 FSClose function 11-94, IV-112, P-132, 133,
Forttan T-245 171
Fortran-77 T-245 FSCreate P-131, 171
400Kdisk T-163 FSDelete function 11-97, IV-113
400K volume T-162 FSFCBLen global variable IV-97, N66
four-tone record Il-227 FSOpen function 11-91, IV-109, P-131, 171

Index I: General Index 17


Inside Macintosh X-Ref

FSQHdr global variable Il-125, IV-176 GetCtlMin function 1-327


FSRead function IV-100, P-131, 171 GetCtlValue function 1-326, P-114, 171
Device Manager Il-178 GetCTSeed function V-143
File Manager Il-92 GetCursor function 1-474, P-84, 171
FSWrite function IV-110, P-132, 171 GetCVariant function V-222
Device Manager Il-179 GetCWMgrPort procedure V-205, 210
File Manager 11-92 GetDateTime procedure Il-378
ftp T-247 GetDblTune function 1-260
FrSndRecPtr data type Il-227 GetDCtlEntry function Il-190
FrSoundR.ec data type Il-227 GetDefaultStartup procedure V-353
FrSynthPtt data type Il-227 GetDefFontSize function V-315
FrSynthRec data type Il-227 GetDeviceList function V-124
full palhname IV-99 GetDitem procedure 1-421
full-duplex communication Il-245, T-177 GetDrvQHdr function Il-128, IV-181
function keys V-22 GetEntryColor procedure V-164
FXInfo data type IV-105 GetEntryUsage procedure V-165
GetEnvirons function V-313
GetEOF function P-132, 172
high-level Il-93, IV-111
G low-level Il-112, IV-142
GetEvQHdr function Il-71
GetFCBlnfo function IV-179
gamma table C9-16 GetFilelnfo function
GDevice record V-119 high-level 11-95, IV-113
General cdev V-325 low-level 11-115, IV-148
Get Info T-159 GetFinfo function Il-95, IV-113
GetllndResource function IV-15 GetFName procedure 1-223
GetllndType procedure IV-15 GetFNum procedure 1-223
GetlNamedR.esource function IV-15 GetFontlnfo procedure 1-173, P-83, 172
GetlResource function IV-16 GetFontName procedure 1-223
GetADBlnfo function V-369 GetForeColor procedure V-68
GetAlrtStage function 1-422 GetFPos function P-132
GetAppFiles procedure 11-58, N77 high-level Il-92, IV-110
GetAppFont function V-315 low-level Il-111, IV-141
GetApplLimit function 11-29 GetFSQHdr function Il-125, IV-175
GetAppParms procedure 11-58 GetGDevice function V-123
GetAuxCtl function V-222 GetGrayRgn function V-208
GetAuxWin function V-207 GetHandleSize function 11-33
GetBackColor procedure V-68 Getlcon function 1-473, P-83, 172
GetBridgeAddress function V-515, N132 GetlndADB function V-369
GetCaretTime function 1-260 GetlndPattem procedure 1-473, P-81
GetCatlnfo function IV-155 GetlndResource function 1-118
GetCCursor function V-75, P-88, 171 GetlndStting procedure 1-468
GetClcon function V-76 GetlndType procedure 1-117
GetClip procedure 1-167 Getltem procedure 1-358, P-104, 172
GetColor function V-174 GetltemCmd procedure V-240
GetCPixel procedure V-69 Getltemlcon procedure 1-360, V-246
GetCRe~on function 1-327 GetltemMark procedure 1-359, V-246
GetCTable function V-77 GetltemStyle procedure I-360, V-247
GetCTitle procedure 1-321 GetIText procedure 1-422, N18
GetCtlAction function 1-328 Getltmlcon procedme 1-360
GetCtlMax function 1-327 GetltmMark procedure 1-359

18 Index I: General Index


Index I: General Index

GetltmStyle procedure 1-300 GetStylHandle function V-268


GetKeys procedure 1-259 GetStylScrap function V-268
GetMainDevice function V-124 GetSubTable procedure V-142
GetMaskTable function IV-25 GetSysFont function V-315
GetMaxCtl function 1-327 GetSysJust function V-315
GetMaxDevice function V-125 GetSysPPtr function 11-381
GetMBarHeight function V-315 GetTime procedure 11-380
GetMCEntry function V-239 GetTimeout procedure V-356
GetMClnfo function V-239 GetTrapAddress function 11-384, IV-234, N2
GetMenu function 1-351, V-243, N78, P-102, GetVBLQHdr function 11-352
172 GetVCBQHdr function 11-126, IV-178
GetMenuBarfunction 1-355, P-172 GetVideoDefault procedure V-354
GetMHandle function 1-361, V-246 GetVlnfo function 11-89, IV-107, N157
GetMinCtl function 1-327 GetVol function N77, Nl40
GetMMUMode function V-592 high-level 11-89, IV-107
GetMouse procedure 1-259 low-level 11-104, IV-131
GetNamedResomce function 1-119 GetVollnfo function
GetNewControl function 1-321, P-112, 113, high-level II-89, IV-107
114, 172 low-level II-104, IV-129
GetNewCWmdow function V-207 GetVRetNwn function 11-89, IV-107
GetNewDialog function 1-413, V-284, N4, P- GetWDinfo function IV-159
107, 172 GetWindowPic function 1-293
GetNewMBar function 1-354, V-247, P-102, GetWMgrPort procedure 1-282
172 GetWRefCon function 1-293
GetNewPalette function V-162 GetWTitle procedure 1-284
GetNewWindow function 1-283, P-95, 173 GetWVariant function V-208
GetNextDevice function V-124 GetZone function Il-31
GetNextEvent function 1-257, N3, NS, N85, P- GhostWindow global variable 1-287
30, 32, 34, 39, 40, 97, 108, 173 global coordinates 1-155, P-77
GetNodeAddress function Il-303 global variables P-161, T-7
GetOSDefault procedure V-355 list m-227, IV-309, V-607
GetOSEvent function 11-69, N85 QuickDraw 1-138, 162
GetPalette function V-163 global width table IV-41
GetPattem function 1-473, P-81, 173 GlobalToLocal procedure 1-193,P-77, 110, 174
GetPenprocedure 1-169,P-78, 173 go-away region of a window 1-271, 288, P-92,
GetPenState procedure 1-169, P-78, 173 T-Sl
GetPicture function 1-475, P-86, 173 GrafDevice procedure 1-165
GetPixel function 1-195 GrafPort data type 1-148
GetPixPat function V-73 gratPort 1-147, P-62, T-91, 114, 215 See also
GetPort procedure 1-165, P-63, 67, 97, 173 graphics ports
GetPttSize function Il-37 coordinate system 1-153
GetRequest function 11-317, V-513 regions T-92
GetResAttrs function 1-121 routines 1-162
GetResFileAttrs function I-113, 127 GratPttdata type 1-148
GetReslnfo procedure 1-113, 121 GrafVars record V-67
GetResource function 1-119, P-173 GrafVerb data type I-198
GetRMenu function 1-351 Grand Funnel P-7
GetRslData operation NI 73 GRANT CS-4, 6
GetScrap function 1-459 graphic resources 1-147
GetScript function V-312 graphics, bit-mapped P-24, 62, 66
GetSoundVol procedure 11-232 graphics devices V-117, 118
GetStting function 1-468 routines V-122

Index I: General Index 19


Inside MacintoshX-Ref

graphics pen T-93, 108 Hebrew Interface System T-111


graphics ports P-62, 67, T-51, 86, 91 height table N30
Color QuickDraw and P-74 HFS see hierarchical fde system
coordinate systems and P-75 HFSDispatch ttap macro IV-118
graphics routines P-60 See also Color HGetFilelnfo function IV-149
QuickDraw; QuickDraw HGetState function IV-79, N2
gray global variable 1-162 HGetVlnfo function IV-130
GrayRgn global variable 1-282, 296, V-121, HGetVol function IV-132
205 HideControl procedure 1-322, P-113, 114, 174
grow image of a window 1-289, T-51 HideCursor procedure 1-168, P-84, 174
grow region of a window 1-272, 289, P-93 HideDltem procedure IV-59
grow zone function II-14, 42, Nl36, T-149 HidePen procedure 1-168
GrowWindowfunction 1-289, V-209, P-98, 174 HideWindow procedure 1-283
GZRootHnd global variable Il-43 hierarchical file directory IV-89, T-156
GZSaveHnd function 11-43 hierarchical file system (HF'S) IV-89, N44, N66,
N68, N77, T-155
hierarchical menu V-226, T-45 See also
menus/menu items
H hierarchical volume T-161
high, defined C2-8
highlighting 1-31, T-49, 55
/HALT C13-8 control 1-313
HandAndHand function Il-375 menu tide 1-357
handle 1-75, 78, II-12, NISS, P-45, T-36, 72, window 1-270
149 HiliteColor procedure V-77
data type 1-78 HiliteControl procedure 1-322
derefezencing Il-14 HiliteMenu procedure 1-357, V-245
empty II-40 HiliteMode global variable V-61
fake Nl17 HiliteRGB global variable V-62
manipulation II-374 HiliteText procedure V-310
nil N7, Nll7 HiliteWindow procedure 1-286
HandleZone function II-34 HiWord function 1-472
HandToHand function 11-374 HLock procedure II-41, N2
Hard Disk 20 IV-223 HLS color model V-43, 171
crashing Nl34 HNoPurge procedure 11-42, N2
hardware ID-15, IV-245 HomeResFile function 1-117
Macintosh SE Cl2-2 HOpen function IV-136
Macintosh II Cl-2 HOpenRF function IV-137
hardware overrun error II-246, T-178 horizontal blanking interval ID-18
HClrRBit procedure IV-79, N2 hotSpot 1-146, P-84, T-96
HCreate function IV-146 HParamBlkPtr data type IV-117
HDelete function IV-147 HParamBlockRec record V-390
heap 1-12, 23, Il-9, 17, C12-5, P-46, T-21, 145 HPannBlockRec data type IV-118
compaction 1-74, 11-12, 39 FileParam variant IV-122
creating on the stack 11-45 IOParam variant IV-120
reserved P-58 VolumeParam variant IV-123
space T-147 HPurge procedure 11-41
heap zone 11-9, 22, V-3, T-145 HRename function IV-154
HeapEnd global variable 11-19, 21 HRstFLock function IV-152
heat dissipation guidelines HSetFilelnfo function IV-150
Macintosh SE Cl4-9 HSetFLock function IV-151
Macintosh II C7-4 HSetRBit procedure IV-79, N2

20 Index I: General Index


Index/: Generallndex

HSetState procedure IV-80, N2 IMMED N2, N44


llSetV'olfunction 1\1-133 immediate printing T-115
llSetV'ollnfo function IV'-131 inactive
HSL2RGB procedure V-175 defined C2-8
HSV color model V-43, 171 control 1-313
HSV2RGB procedure V-175 window 1-46, 270
Human Interface Guidelines P-xviii include file T-25
HUnlock procedure Il-41, N2 indexing IV-101
llyperCard P-149 lndex2Color procedure V'-141
background field limit Nl69 indicator of a dial 1-312
background printing N168 lnfoScrap function 1-457
closeField Nl69 inheritance, objects and P-145
dial Nl69 lnit procedure Nl 78
exit to N169 'INIT' resource Nl 10
file format NI 70 'INIT 31 resource IV'-256, V-352
find command N169 InitAllPacks procedure 1-484
idle handler N169 InitApplZone procedure 11-28
MultiFinder and Nl69 lnitCPort procedure V-67
private access Nl69 lnitCursorprocedure 1-167, P-84, 174
'snd' resource and N168 InitDialogs procedure 1-411, P-107, 112, 174
title bar highlighting Nl69 lnitFonts procedure 1-222, P-31, 95, 101, 107,
visual effect N169 112, 118, 174
word wrap N169 lnitGDevice procedure V-122
HyperTalk P-150 lnitGrafprocedure 1-162, P-31, 63, 95, 101,
107, 112, 118, 174
initialization resources IV-256, T-78, 79
initiator device IV-285, T-175
InitMenus procedure 1-351, V'-242, P-101, 107,
175
lnitPack procedure 1-484
lnitPalettes procedure V-161
'ICN#' resource N29, N48, NSS lnitPort procedure 1-164
'ICN#' cdev resource V'-327 lnitPRAMRecs function V-454
icon 1-32, N55-l, T-14, 69, 78, 95 lnitProcMenu procedure V-238
for a me 11-85, m-10 lnitQueue procedure Il-103, IV-128
in a dialog/alert 1-404 InitResources function 1-114
in a menu 1-347, 359 InitSDeclMgr function V-451
number 1-347 InitsRsrcTable function V-453
QuickDraw and P-83 lnitUtil function 11-380
utility routines 1-473 lnitWindows procedure 1-281, V-208, P-31, 78,
icon list ill-11, T-128 95, 101, 107, 112, 118, 175
resource fonnat 1-476, m-12 InitZone procedure 11-29
'ictb' resource V-278 input driver 11-246, T-177
ID code C2-5, C2-9 insertion point 1-41, 375, IV-4
11>=33 N151 InsertMenu procedure 1-353, V-243, P-98, 102,
/ID3-/IDO C2-5, C3-2, CS-4 104, 175
illegal instruction T-189 lnsertResMenu procedure 1-353, V-243
image width 1-228, T-lO'J InsetRect procedure 1-175
lmageWriter N3, N33, T-9, 26, 114, 115, 133, lnsetRgn procedure 1-184
241, 246 . Inside Macintosh P-xvi, xviii, 154
ImageWriter II T-9 lnsMenultem procedure IV-55
ImageWriter, AT Nl24 InsNewltem procedure V-243

Index I: General Index 21


Inside MacintoshX-Ref

Installer N75, T-77 lnvertPoly procedure 1-192


installing a driver at startup C9-5 InvertRect procedure 1-177, P-80, 175
InsTime procedure IV-300 InvenRgn procedure 1-186
Institute of Electrical and Electronics Engineers lnvertRoundRect procedure 1-179
(IEEE) Cl-3 invisible
Intel 8021 microprocessor T-230 conttol 1-316
interface file T-25 dialog/alert item 1-406
interface routine 1-95 file icon 11-85
international resources I-495 window 1-274
International Standards Organization (ISO) T- 1/0 connector shield C7-5, Foldout 2
· 111 l/O device T-216
International Utilities Package 1-12, 493, V-9, accessing from cards C13-10
287, P-27, T-21, 77 l/O queue See driver 1/0 queue or file l/O queue
routines 1-504 l/O request 11-97, 180, IV-115
sorting routines V-291 l/O system error T-189
internet 11-265, N9, T-181 ioACAccess record V-388
address 11-265, 314, T-181 ioActCount N19
interrupt 11-195, N85-l, T-217 ioACUser record V-390
level-I (VIA) 11-197, m-38 ioCompletion Nl30
level-2 (SCC) 11-198 ioDenyM~record V-389
level-3 11-196 ioDirID N77
vertical retrace 11-349 IODone function 11-195
interrupt handler 11-195, T-217 ioFCBindx N87
writing your own 11-200 ioFDirlndex N69
interrupt priority level 11-196 ioFJFndrlnfo N40
interrupt signal T-234 ioFlNum N77
interrupt tasks V-466 ioFIVersNum N102
interrupt vector 11-196 ioNamePtr NI 79
interrupts, slot device C9-8 ioObjType record V-388
'INTL' resources Nl53 ioVDRefNum Nl06
'INIL' 0 resource V-288 ioVDrvlnfo Nl06
'INIL' 1 resource V-288 ioVFndrlnfo N67
'INIL' 2 resource V-288 ioWDProcID N77
IntlOHndl data type 1-496 /IPLO-/IPL2 Cl3-8
lntlOPtr data type 1-496 IsATPOpen function 11-304
IntlORec data type 1-497 lsDialogEvent function 1-416, NS, P-108, 175
lntllHndl data type 1-500 lsMPPOpen function 11-304
IntllPtr data type 1-500 ITabrecord V-139
Intl lRec data type 1-500 item T-57
lntlScript function V-314 dialog/alert 1-403
intrinsic font T-104 menu 1-341
lntlSpec global variable IV-42 type 1-404
lnt64Bit data type 1-472 item list 1-403, T-57
InvalRectp.rocedure 1-291 resource format 1-427
InvalRgn procedure 1-291 item number
InverRect procedure 1-177 dialog/alert 1-406
InverRgnprocedure 1-186 menu 1-350
InverRoundRect procedure 1-179 'itl 'resources Nl53
inverse table V-137 'itlO' resource V-288
InvertArc procedure 1-181 'itll' resouree V-288
InvertColor procedure V-141 'itl2' resource V-288
InvertOval procedure 1-178 'itlb' resource V-288, Nl60

22 Index I: General Index


Index I: General Index

'itlc' resource V-288 kernel T-242


IUCompString function 1-506, N58 kerning 1-152, 228, T-94, 109
IUDatePString procedure 1-505 kerning table IV-40
IUDateStting procedure 1-504 Key Caps T-26, 78, 110
IUEqualString function 1-506, N58 key codes 1-250, T-43
IUGetlnd fwiction 1-505 Key Mapping Nl60
IUMagIDString function 1-507, N58 key script V-298
IUMagString function 1-506, N58 key-down event 1-244, T-37, 39, 40, 43
IUMettic function I-505 responding to 1-256
IUStrData NI 78 key-down transitions IV-250
IUSetlnd procedure 1-506 key-up event 1-244, 254, T-37, 39, 40
IUTimePString procedure 1-505 keyboard 1-33, IV-250, V-190, T-229
IUTimeSb'ing procedure 1-505 configuration 1-248
IWM (Integrated Woz Machine) ill-17, Cl-3, equivalent 1-343, P-103, T-46, 47
Cl2-4, N2, T-192, 216, 226 . meta-character 1-348
IWM global variable m-34 responding to 1-356
standard equivalents 1-53, IV·74
reserved IV-7
event 1-244, 246, P-34, T-37, 40
J event message 1-250, V-193
responding to 1-256
hardware m-29
JADBProc variable V-367 input, ASCII and P-164
Japanese Interface System T-111 mapping procedure T-42
jDoVBLTask V-568 mappingresource T-78
jDTinstall V-467 touch See auto-key threshold
JFetch global variable Il-194 Keyboard cdev V-325
jGNEFilter N85 KeyMap data type 1-2£>0
JIODone global variable 11-195 keypad 1-35, IV-250
job dialog 11-149 hardware m-29
job subrecord 11-150 KeyRepThresh global variable 1-246
journal code 1-262 KeyScript procedure V-314
JoumalFlag global variable 1-261 KeyThresh global variable 1-246
journaling mechanism 1-261, T-37 KeyTrans function V-195, NUiO
JoumalRef global variable 1-261 KillControls procedure 1-321, P-113, 175
JStash global variable 11-195 KillGetReq function V-514
jump table Il-60, T-142, 151 KillIO function
jump vector 11-194 high-level 11-179
just-tempered scale 11-237 low-level 11-187
justification 1-376, T-112 KillNBP function V-514
gap V-305 KillPicture procedure 1-190
setting 1-387 KillPoly procedure 1-191
KillSendReq function V-514
'KMAP' resource V-190, Nl60

K
L
KanjiTalk Nl38, T-111
KbdLast variable V-367
KbdType variable V-367 LActivate procedure IV-276
'KCHR' resource V-190, N160 LAddColumn function IV-271

Index I: General Index 23


Inside Macintosh X-Ref

LAddRow function IV-271 Lisa Pascal N2, P-140


LAddToCell procedure N-272 list IV-261, T-61
LAP N9 cell selection IV-266
LAPAdrBlock data type 11-276 defining your own IV-262, 276
LAPCloseProtocol func.lion 11-277 drawing IV-262
LAPOpenProtocol function 11-277 element IV-261, T-61
LAPRdCancelfunction 11-279 list definition procedure T-62
LAPRead function 11-278 List Manager Package IV-259, T-21, 61, 77,
LAPWrite function 11-277 134
Laser Prep N152 routines IV-269
LaserShare N133, T-116 list record IV-262
Print Spooler T-180 list separator 1-497
LaserWriter N21, N72, T-9, 26, 87, 104, 107, Listen command V-363, 364
114, 117, 133, 179,241,246 ListHandle data type IV-264
fonts T-118 ListPtr data type IV-264
LaserWriterPlus T-9, 117 ListRec data type IV-263
fonts T-118 LLastClick function IV-273
Launch N52, Nl26, T-244 l...New function IV-270
procedure 11-liO · LNextCell function IV-274
LAutoScroll procedure IV-275 loading segments P-56
LCellSize procedure N-273 LoadNBP function 11-324
LClick function IV-273 LoadResource procedure 1-119
LChCell procedure N-272 LoadScrap function 1-458
LDelColwnn procedure N-271 LoadSeg procedure 11-liO, IV-83, N43
LDelRow procedure N-272 local coordinates 1-153, P-76
LDispose procedure IV-271 local ID 111-10
LDoDraw procedure N-275 localization V-8, V-294, P-26, T-110
LDraw procedure N-275 LocalToGlobalprocedure 1-193,P-77, 176
/LDS C13-9 location (of screen) P-161
leading 1-228, T-103 location table 1-231
Length field CS-7 - lock bit 11-25
LFind procedure N-274 locked
LGetCell procedure IV-272 block 1-76, 11-10, T-147
LGetSelect function IV-273 file 11-84, IV-94, T-159
LHElement V-263 volume 11-80, IV-93, T-159
LHTable V-263 locking C5-6
library file T-25 locking a block 1-76, II-41
ligatures I-SO 1 LockRng function IV-138
line P-79, 87, 175 LodeScrap function 1-458
breaks N92 logarithmic functions 11-407
height 1-378 logical
layout N92 block 11-119, IV-89, 160, T-160
QuickDraw and P-78 end-of-file 11-81, IV-93
line drive (NuBus card), DC and AC size of a block 11-22
specifications for C6-2 logical operations 1-471
Line procedure 1-171 logical state definitions C6-2
line 1010 exception T-189 long data type C8-2
line 1111 exception T-189 LongMul procedure 1-472
LineTo procedure 1-170, P-79, 87, 175 Long2FIX function IV-65
LINK' resource N88 LookupName function II-323t V-513
linker T-151 Lo3Bytes global variable 1-85, II-25
Lisa Clascal environment P-140

24 Index I: General Index


Index/: General Index

low, defined C2-8 sound chip T-225


lowercase T-76, 158 specifications T-254
low-memory globals NI 17 video T-216
LoWord function 1-472 card for Cll-2
LRect procedure IV-274 Macintosh II to NuBus address mapping C4-5
LScroll procedure IV-275 Macintosh Interface Libraries P-140, 141
LSearch function IV-274 Macintosh Plus T-2, 3, 194
LSetCell procedure IV-272 block diagram T-217
LSetSelect procedure IV-273 display screen T-167
LSize procedure IV-274 hardware compatibility T-9
ltGray global variable 1-162 keyboard V-190, 191, T-230
LUpdate procedure IV-275 power supply T-7
LvllDT global variable 11-197 RAM T-140
Lvl2DT global variable 11-198 ROM debugger N38
sound T-223
specifications T-251
Macintosh Programmer's Workshop See MPW
M Macintosh Programmer's Workshop 2.0
Reference P-xviii See also MPW
Macintosh ROM T-14
MacApp P-141 Macintosh SE Nl17, T-4, 16, 196 See also
introduction to P-148 cards (Macintosh SE); SE-Bus expansion
Object Pascal and P-147 in~
programming in P-149 accessing electtonics from an expansion card
sample programs and P-156 Cl3-10
MacDraw T-63 additional support for expansion C12-7
'mach' cdev resource V-327, 328 address space C13-16
Macintosh architecture C12-2
character set T-41 block diagram C12-3, T-219, 220
classic T-2 disk conttoller card for C16-2
hardware/software relationship T-7 display screen T-167
overview of P-2 expansion connector T-208
software architecture of P-12 hardware T-200
Macintosh Family Hardware Reference P-xviii hardware compabbility T-9
Macintosh 512K T-2 power supply T-7
Macintosh 512K enhanced T-2, 16 RAM T-140
Macintosh II Nl17, T-5, 16, 198 See also sound T-223
cards (NuBus); NuBus specifications T-252
address allocations C4-5 MacPaint N3, T-26
architecture Cl-2 document format N86
block diagram Cl-4, T-219, 221 Macsbug N7, N113, P-139, 151
Color Toolbox T-98 MacWrite T-128
disk conttoller card for Cl0-15 magnitude of a wave 11-223, T-171
expansion slots T-209 mail T-247
floating-point coprocessor T-W7 main event loop 1-16, T-29 See also
hardware T-200 events/event loop
hardware compatibility T-9 main screen V-121
1/0 T-201 main segment 11-55, P-55, T-150
Keyboard V-190, 191 MainDevice global variable V-124
memory management T-W6 MajorBaseOS C8-16
power supply T-7 MajorLength C8-16
RAM T-140 makefiles P-139

Index I: General Index 25


Inside Macintosh X-Ref

MakeITable procedure V-142 management of 11-7, P-46, T-144


MakeRGBPat procedure V-73 introduction 1-71
manager T-15 organization of 11-19, IV-257, P-42
MapPoly procedure 1-197 out-of-memory conditions and P-568
MapPtprocedure 1-196 parking garage analogy P-43
MapRect procedure 1-196 reorganization of P-52
MapRgn procedure 1-196 segment loadez and P-53
mark P-129 system use of P-52
in a file 11-82, IV-94 Memory Manager 1-12, II-7, IV-77, P-42,
in a menu 1-347, 359 T-21, 73, 140, 145, 187
mark state 11-245 routines 11-27, IV-77
masks, defined P-39 memory, routines that may move or purge m-
master, defined C2-8 211, IV-303, V-601
master directory block 11-120, IV-160 MemTop global variable Il-19, 21, 44
master pointer 1-75, 11-12, N7, T-150 menu 1-341, P-99, T-14, 20, 34, 44, 69
allocation 11-22, 31 accessing/changing P-104
structure 11-25 blink T-132
MatchRec record V-71 color in P-105
MaxApplZone procedure 11-30, IV-77, 83, defining your own 1-362
N39,Nl03 definition procedure 1-344, 362, IV-56,
MaxBlock function IV-77 V-248, P-100, T-44
MaxMem function II-38 disabled T-45
MaxSizeRsrc function IV-16 features V-24
MBarEnable global variable 1-356, 446 guidelines 1-51
MBarHeight global variable V-253, Nl 17 highlighting V-235
MBarHook global variable 1-356 item 1-341, T-45
'MBDF resources V-250 blinking 1-361, 11-371
MC68000 microprocessor Cl2-4, Nl46, T-5, entry V-234
25, 141, 189, 192,202 number 1-350
address space T-203 list 1-345, P-102
expansion connector T-208 record 1-344
functional description of signals Cl3-8 removing P-101
MC68020 microprocessor Cl-3, T-25, 172, resource format 1-364, P-100
200,202 scrolling IV-56
address space T-204 setting up P-101
MC68851 Paged Memory Management Unit standard menus 1-54, 342
(PMMU) T-206 title 1-341
MC68881 floating-point numerics processor entry V-233
Cl-3, T-184, 207, 240 menu bar 1-341, T-20, 44, 47
MCEntry V-231 definition procedure V-250
MCTable V-232 defproc m~es V-251
'mctb' resource V-234 entry V-233
'MDEF resources V-248, P-100 mouse event handling in P-36
MDEF procedure, message 3 Nl 72 resource format 1-365
MDSEdit N84 menu color information table V-231
MeasureJ ust procedure V-311 menu ID 1-344
MeasureText procedure IV-25 Menu Manager 1-12, 339, IV-55, V-225, P-99,
MemErr global variable IV-80, N7 T-20,44,45, 72,97
MemError function 11-44, N7 using P-101
memory P-42, T-211 See also blocks routines 1-351, IV-55, V-238
block 1-73, 11-10 MenuChoice function V-240, P-103, 105, 176
elements of P-44 MenuCinfo global variable V-242

26 Index I: Generalindex
Index/: Genera/Index

MenuCRsrc V-234 Motorola MC68xxx See MC68xxx


MenuDisable global variable V-249 mounted volume II-79, IV-92, P-122, T-158
MenuFlash global variable 1-361 MountVol function IV-128
MenuHandle dala type 1-345 mouse 1-36, T-233
MenuHook global variable 1-356 hardware m-25
Menulnfo V-230 location 1-259, 323
data type 1-345 scaling 11-372
MenuKey function 1-356, V-245, P-105, 176 windows and P-97
MenuList global variable 1-346, V-228, N85 Mouse cdev V-325
MenuPtt data type 1-345 mouse event handling P-33, 35
MenuSelect function 1-355, V-244, P-36, 103, mouse-down event 1-244, T-29, 37, 39
105, 176 responding to 1-255
message P-147 mouse-up event 1-244, T-37, 39
message phase IV-286, T-176 responding to 1-255
meta-characters mouse scaling T-132, 233
AppleTalk Manager Il-266, 320 threshold T-233
Menu Manager 1-346 mouse-tracking resource T-78
methods, defined P-142 Move procedure 1-170, P-79, 176
MicrosoftWord T-180 MoveConttol procedure 1-325, P-113, 176
MIDI (Musical Instrument Digital Interface) V- MoveHHi procedure II-44, IV-77, 83, N103,
475, 496, Tl 73 Nill
MIDI synthesizer V-475, T-173 MovePoriTo procedure 1-166
Mini-8 COMector IV-248 MoveTo procedure 1-170, P-79, 177
MiniF'mder T-125 MoveWindow procedure 1-289, V-200, P-177
MinorBueOS CS-16 moving blocks P-47
MinorLength CS-16 MPNT N86
MinStack global variable 11-17 mPopupMsg, MDEF message N172
MinusOne global variable 1-85 MPP 11-271
miscellaneous exception T-189 .MPP driver 11-264, 271, IV-229
missing symbol 1-152, 220, 230, T-94, 106 MPPClose function 11-275
MMU32Bit global variable V-592, N2 MPPOpen fwtction II-275
modal dialog box 1-67, 400, 415, P-106, T-56, MPPParamBlock packed record V-511, 551
59 MPW T-26, 80, 158, 245
ModalDialog procedure 1-415, N34, P-108, Assembler P-141
176 C P-140, Nl64, Nl66
mode, 24/32 bit Cl-6, C4-3 described P-136
modeless dialog box 1-67, 400, 416, P-106, Linker NllO
T-57 Pascal P-140
modem T-229 sample programs and P-156
port configuration T-131 Shell P-139, T-242
modes 1-28 MPW:%_1nit0bj file N105
modifier T-174 MPW:%_MethTables file N93, N105
modifier flag 1-252 MPW:Globals/Assy file Nl04
structure V-194 MPW:Linker file N93
modifier keys 1-34, 246, P-34, T-40, 42 MPW:Object Pascal flle Nl05
lags in event record 1-252 MPW:_Datalnit file N93
ModifierStub record V-482 MPW:($LOAD} file N93
modifying conttols P-113 multibit fonts V-83
modulo C3-6 MultiFinder N158, Nl77, N180, T-27, 39,
monitor cables N144 125, 166
Monitors cdev V-325 screen T-125
MoreMasters procedure II-31, N53 multiple screens V-121

Index I: General Index 27


Inside MacintoshX-Ref

multita.Wng T-206, 238 NewPtr function 1-75, 79, 11-36, P-51, 177
Munger function 1-468 NewRgn function 1-181, P-85, 177
Musical Instrument Digital Interface (MIDI) V- NewString function 1-468
475, 496, T-173 NewWindow function 1-282, P-95, 178
MyCallBack procedure V-480 'NFNT resource IV-30, V-181, 183
MyModifier fwiction V-480 NGetTrapAddress function IV-234, Nl56
Nil pointers P-165
96-pin connector
Macintosh SE and Cl4-6
N Macintosh n and C7-3
/NMRQ C2-4, S, C3-3, 11, C6-2
node 11-263, T-179
name lookup Il-266 ID 11-263
Name-Binding Protocol 11-266, N9, T-183 noErr P-40, 129
assembly language 11-319 noGrowDocProc P-92
Pascal Il-298 non-aligned MC68020 access C3-16
names directory Il-266 non-aligned reads C3-16
names infonnation socket Il-266 non-aligned writes C3-16
names table 11-266, 321 nonblind transfer T-227
NBP See Name-Binding Protocol nonbreaking space 1-246
NBP tuple Il-266 non-master request C3-3
NBPConfirm function Il-301, N9 nonrelocatable block 1-75, Il-10, P-47, T-147
NBPExtract function Il-300 allocating II-36
NBPExtract function V-515 out-of-memory conditions and P-57
NBPLoad function 11-301 reltming II-36
NBPLookup function Il-300, N9, N20 note alen P--106, 107, T-59
NBPRegister function Il-299, N20 note synthesizer V-475, T-173
NBPRemove function 11-301 NoteAlen function 1-420, V-284, P-109, 178
NBPSetEntity procedure V-514 'nrct' cdev resource V-327
NBPSetNTE procedure V-515 'nrct' resoun:e V-329
NBPUnload function 11-301 NSendRequest function V-514
neg7£bFreeErr Nl51 NSetTrapAddress procedure IV-234
network event 1-244, 11-275, T-38, 39 nsvErr N24
NetworkFtle'System (NFS) T-247 NuBus T-5, 20'J See also cards (NuBus);
network number 11-265 Macintosh II
networkEvt Nl42 address space C4-3
network-visible entity Il-265, T-181 arbitration CS-2
New command 1-56 bit and byte structure C4-7
NewCDialog function V-283 block read ttansaction C3-13
NewControl function 1-319, P-112, 114, 177 block write ttansaction C3-14
NewCWindow function V-207 connector pin assignments C6-5
NewDialog function 1-412, P-107, 177 data ttansfer C3-2
NewEmptyHandle function IV-78 defmitions C2-7
NewGDevice function V-122 design examples CI0-2
NewHandle function 1-76, 80, 11-32, N7, implementation rules C3-l l
Nl17, P-51, 177 interface architecture C 1-8
newline character Il-84, IV-95 interrupt mechanism C3-l l
newline mode 11-84, IV-95 interrupt operations C3-l l
NewMenu function 1-351, P-102, 103 licensing requirements CI-4
NewPalette function V-161 overview C2-2
NewPixMap function V-70 power budget C6-6
NewPixPat function V-72 read 1ransaction C3-7

28 Index I: General Index


Index I: General Index

slot address space T-142 OfsetRgn procedure 1-183


system clock C2-6 OldContent global variable 1-296
write transaction C3-8 OldSttucture global variable 1-296
NuBus Test Card Cl0-2. See also cards on-line volume 11-80, IV-92, T-159
(NuBus); Macintosh II; NuBus; SCSl- OneOne global variable 1-85
NuBus Test Card OpColor procedure V-77
byte swapping and Cl0-4 Open Apple symbol T-38, 232
electrical schematic C Foldout 3 open collector, defined C2-8
hardware organiz.ation Cl0-6 Open command 1-56, Nl02, T-126, 157
muter operation Cl0-9 open device driver 11-176, T-169
muter register interpretation .Cl0-3 open file 11-83, IV-94, T-158
muter transaction timing Cl0-8 Open function
overview of operation Cl0-2 high-level IV-109
PAL listings for CA-1 Device Manager 11-178
programming Cl0-5 File Manager 11-91
programming model (registers) Cl0-2 low-level IV-135
registez addreaes Cl0-3 Device Manager 11-184
slave operation Cl0-9 File Manager Il-108
NuBus to Macintosh II address mapping C4-5 open pennission 11-83, IV-95
NuBus to processor bus state machines Cl-9 open routine
null event 1-245, T-38, 40 of a desk accessory 1-445
nulls Nl07 of a driver 11-187, 193
NullSTRec V-264 OpenA1PSkt function 11-315, V-513
numeric formatter IV-69 OpenCPort procedure V-67
numeric scanner IV-69 OpenDeskAcc function 1-440
NumToString procedure 1-489 OpenDriver function Il-178
opening
alerts P-107
dialogs P-107
0 edit record P-118
files P-131
windows P-95
object-oriented programming P-141 OpenPicture function 1-189, V-96, P-86, 178
ObjectPucal P-140, 146 OpenPoly function 1-190
MacApp and P-147 OpenPort procedure 1-163
objects OpenResFile function 1-115, N46, N78, NlOl
defined P-142, 143 OpenRF function N74
fields of P-144 high-level 11-91, IV-100
inheritance and P-145 low-level 11-109, IV-137
ObscureCursor procedure 1-168, P-84, 178 OpenRFPenn function IV-17, Nl16
obtaining blocks P-51 OpenRgn procedure 1-181, P-85, 178
off-line volume Il-80, IV-92, T-159 OpenSkt function 11-311, V-513
OffLine function 11-106, IV-134 OpenSlot function V-425
offscreen biunap V-125, N4 l OpenWD function IV-158
offscreen devices V-125 Operating System 1-9, P-20, T-6, 7, 14, 21,
off-screen drawing T-86 -166
offset data type C8-2 calls P-166
offset/width tabl~ 1-231, IV-34 components T-17
OffsetPoly procedure 1-191 layers T-167
OffsetRect procedure 1-174 queues 11-372
OffsetRgn procedure 1-183 Operating System Event Manager 1-13, 11-65,
offspring, of a directory IV-91 IV-85, T-21, 28, 36, 40, 229

Index.I: Generallndex 29
Inside Macintosh X-Ref

routines Il-68 prioritization V-157


Operating System Utilities 1-13, 11-367, IV- resource example V-lliO
233, V-591 Palette Manager V-151, T-19
routines Il-374, IV-233, V-592, T-23 routines V-161
Option key P-34, T-40, 43, 43, 123, 129 Palette record V-159
OSErr data type Il-373, P-129, 162 Palette2CTab procedure V-lfJ6
OSEventAvail function Il-70 pane 1-49
OSType data type Il-373 panel 1-50
output driver Il-246, T-177 paper rectangle Il-150
out-of-memory conditions P-56 ParamBikType data type Il-98, 181, IV-117
handling P-58 ParamBlockRec data type Il-98, 181, IV-118
overrun error See hardware overrun error or ·driver 1/0 queue entry Il-191
software overrun enor file I/O queue entry Il-124, IV-175
owned resources 1-109, N6 FileParam variant IV-122
IOParam variant IV-120
VolumeParam variant IV-123
parameter block 1-93, Il-97, 180, IV-116
p parameter RAM Il-369, IV-251, T-106, 130,
222
default values Il-370
'PACK' resoUJCe IV-67 routines Il-380
Pack 0 See List Manager Package settings T-131
Pack 2 See Disk Initiali7.ation Package PanunText procedure 1-421
Pack 3 See Standard File Package parent directory IV-91
Pack 4 See Floating-Point Arithmetic Package parent ID IV-92
Pack 5 See Transcendental Functions Package parity bit 11-245, T-177
Pack 6 See International Utilities Package parity error Il-246, T-177
Pack 7 See Binary-Decimal Conversion Package parity signals C2-5, C3-5
Packl2 See Color Picker Package parked, defined C2-8
Package Manager 1-12, 481, IV-67, T-20 PannBlkPttdata type Il-98, 181, IV-117
packages 1-12, 483, IV-67, T-20, 23 part code 1-315, 330, P-111
PackBits procedure 1-470, N86 partial pathname IV-99
page T-206 partition map entry V-579
page fault T-206 Pascal See MPW Pascal or specific version
page rectangle Il-150 Pascal data types, sizes of 1-86
Page Setup command 1-57 Pascal stack management T-145
Paged Memory Management Unit (PMMU) Cl- Paste T-47, 63
6, T-206 pasting T-63
PaintArc procedure 1-180 'PAT' resoW'Ce P-81
PaintBehind procedure 1-297 patch T-79
PaintOne procedure 1-296, V-208 path reference number Il-83, IV-94
PaintOval procedure 1-178 PatHandle data type 1-473
PaintPoly procedure 1-192 pathname IV-99, T-158
PaintRect procedure 1-177,P-80, 178 PatPtr data type 1-473
PaintRgn procedure 1-186 pattern 1-145, 473, N86, T-95
PaintRoundRect procedure 1-179 QuickDraw and P-81
PaintWhite global variable 1-297 Pattern data type 1-146
PAL listings pattern list 1-473
for NuBus Test Card CA-1 resoUJCe format 1-476
for SCSl-NuBus Test Card CB-1 pattern-printing control, in graphics port record
palette 1-32, V-152 P-74
customi7.ation V-158 pattern transfer mode 1-157

30 Index I: Generallndex
Index/: Generallndex

PBAllocate function 11-113, IV-143 File Manager 11-108


PBAllocContig function IV-143 PBOpenRF function 11-109, IV-137
PBCatMove function IV-157 PBOpenWD function IV-158, N77
PBClose function IV-144 PBRead function IV-139
Device Manager 11-184 Device Manager 11-185
File Manager 11-114 File Manager 11-110
PBCloseWD function IV-158 PBRename function Il-118, IV-153
PBControl function 11-186 PBRstFLock function 11-117, IV-152
PBCreate function 11-107, IV-145 PBSetCatlnfo function IV-156
PBDelete function 11-119, IV-147 PBSetEOF function 11-112, IV-142
PBDiICreate fwiction IV-146 PBSetFinfo function 11-116, IV-150
PBEject function 11-107, IV-135 PBSetFLock function 11-116, IV-151
PBFlushFile function 11-114, IV-144 PBSetFPos function 11-111, IV-141
PBFlushVol function 11-105, IV-133 PBSetFVers function 11-117, IV-153
PBGetCatlnfo function IV-155, V-391, N68, PBSetVInfo function IV-131
N69 PBSetVol function 11-105, IV-132
PBGetEOF function 11-112, IV-142 PBStatus function 11-186
PBGetFCBlnfo function IV-179, N87 PBUnlockRange function IV-139
PBGetFinfo function 11-115, IV-148, N24,N68 PBUnmountVol function 11-106, IV-134
PBGetFPos function 11-111, IV-141 PBWrite function IV-140
PBGetVInfo function 11-104, IV-129, N24, Device Manager 11-185
N44,N157 File Manager 11-110
PBGetVol function 11-104, IV-131 pea cards C3-17
PBGetWDinfo function IV-159, N77 pen characteristics 1-150
PBHCopyFile function V-396 pen description, in graphics pon record P-69
PBHCreate function IV-146 PenMode procedure 1-169, P-79, 178
PBHDelete function IV-147 PenNormal procedure 1-170, P-79, 179
PBHGetDirAccess function V-394 PenPat procedure 1-170, P-79, 179
PBHGetFinfo function IV-149 PenPixPat procedure V-74
PBHGetLoglnlnfo function V-393 pens, QuickDraw and P-78
PBHGetVInfo function IV-130, N66, N67, N77 PenSize procedure I-169, P-79, 179
PBHGetVol function IV-132 PenState data type 1-169
PBHGetVolPanns function V-392 period. defined C2-8
PBHMaplD function V-395 period of a wave 11-223, T-171
PBHMapName function V-395 /PFW C2-5, C3-3, C6-2
PBHMoveRename function V-397 interaction with the power supply (NuBus card)
PBHOpen function IV-136 C6-4
PBHOpenDeny function V-398 phaseofa wave cycle 11-223, T-171
PBHOpenRF function IV-137 physical design guide
PBHOpenRFDeny function V-398 for Macintosh SE cards Cl4-2
PBHRename function IV-154 forNuBuscards C7-2
PBHRstFLock function IV-152 physical end-of-file 11-81, IV-93
PBHSetDirAccess function V-394 physical size of a block 11-23
PBHSetFinfo function IV-150 PicComment procedure 1-189, N72, N91
PBHSetFLock function IV-151 picComments V-94
PBHSetVol function IV-133, Nl40 PicHandle data type I-159
PBKillIO function 11-187 PicPtr data type I-159
PBLockRange function IV-138 'PICT data type 1-455, P-86
PBMountVol function 11-103, IV-128 PICT file V-85
PBOffLine function 11-106, IV-134 sample V-95
PBOpen function IV-135 PICT opcodes V-96
Device Manager II-184 expanded fonnat V-103

Index I: General Index 31


Inside Macintosb X-Ref

picture 1-158, N21, T-87, 95 PollRoutine C9-10


comments 1-159, N91, T-87 polygon 1-159, T-87
lines N91 routines 1-190
polygons N91 QuickDraw and P-87
printing fonns N91 Polygon data type 1-159
rotation N91 PolyHandle data type 1-HiO
text N91 PolyPtt data type 1-160
compatibility V-92 pop-up menu V-25, T-47
frame 1-158, T-87 PopUpMenuSelect function V-241, N156
QuickDraw routines 1-189, P-86 port T-86
sttuctures V-92 port description, in graphics port record P-69
utility routine 1-475 Portable C Compiler (PCC) P-140
Picture data type 1-159 portBits of a grafPort 1-148
Picture record V-86 PortBUse global variable Il-305
picture spooling V-87 portRect of a grafPort 1-149
sample programs V-88, 89 PortSize procedure 1-165
pinouts NlO, N65 post an event 1-243
PinRect function 1-293 'POST resource N91
pixel 1-139, 143, V-42, T-88 PostEvent function 11-68
images P-65, T-90 posting alerts P-109
maps P-66, T-91 PostScript N72, N91, T-87, 117, 180
pattern V-55, P-81 power budget
value V-42, T-101 Macintosh SE C13-19
Pixel2Char function V-307 NuBus C6-6
PixMap record V-52, N120,Nl63 power fail warning C3-3
PixPat record V-55 power/growid signals C2-5
PKillGetReq function V-518 power supply (NuBus card)
PKillNBP function V-518 /P'FW interaction with C6-4
PKillSendReq function V-517 specifications C6-6
plainDBox P-92 'ppat' resource V-78, 79, P-81, 88
PlotClcon procedure V-76 PRAMinitData C8-1
Plotlcon procedure 1-473, P-83, 179 PrClose procedure 11-157, V-408, Nl61
'pltt' resource V-152 PrCloseDoc procedure Il-160, V-408
PrnBackColor procedure V-163 PrClosePage procedure 11-160, V-408, N72
/PMCYC Cl3-9 PrCllCall procedure Il-163, V-408
PmForeColor procedure V-163 PrDlgMain N95
PMSP N69, N77, NlOl PrDmClose procedure Il-163, V-408
PNSendRequest function V-516 PrDm'DCE function 11-163, V-408
PNTG N86 PrDrvrOpen procedure Il-163, V-408
point T-88, 103 PrDm'Vers function 11-163, V-408
point (coordinate plane) 1-139 preflighting P-58
routines 1-193 'PRER' resource IV-216
Point data type 1-139 PrError function 11-161, V-408, N72, N118
point (font size) 1-61, 153, 217 'PRES' resource IV-216
pointer T-36, 95, 149 PIGeneml procedure V-410, Nl28
(on screen) 1-36, 37 See also cursor PrGlue trap V-408, 409
(to memory) 1-75, 78, Il-11, NISS, P-45 Prldle procedure Nl 18
data type C8-2 primary ordering V-291
manipulation Il-374 Primarylnit C8-18
nil N117 prime routine of a driver Il-187, 193
type coercion 1-79 PrimeTime procedure IV-300
points, defined P-72 Print Action routine Nl 74

32 Index I: General Index


Index I: General Index

Print command 1-57, T-126 types of P-5


print dialogs Il-148, N95, T-115, 116 Project procedure Nl 78
printrecord Il-148 Pr0pen procedure 11-157, V-408, N161
PrintDefault procedure Il-158, V-408 Pr0penDoc function ll-159, V-408
printer PrOpenPage procedure 11-159, V-408, N72
low level calls N124 proportional font 1-228, T-109
infonnation subreconl Il-150 ProtectEntry procedure V-143
output, ASCD and P-164 protocol 11-263, T-181
resource fde ll-147 protocol handler Il-264
Printer Access Protocol (PAP) T-183 table Il-264
printer connection T-132 writing your own Il-324, 326
Printer Driver 1-13, Il-147, 162, T-22, 26, 113, PrPicFile procedure Il-l(J(), V-408
169, 176 PrSetErrorprocedure. 11-161, V-408
printer font T-118 prStl subrecord, of print record N72
printer port configuration T-131 PrStlDialog function Il-158, V-408
printer resource file T-113 PrSdlnit function N95
PrintErr global variable 11-161 PrValidate function 11-158, V-408, N72
printing Nll8, T-113 PScrapStuff data type 1-457
character T-40 PSetSelfSend function V-516
color N73 Pt2Rect procedure 1-175
device independent N122 PtlnRect function 1-175
doc names N149 PtlnRgn function 1-185
LuerWriter N72 Ptt data type 1-78
methods 11-153, T-115 PttAndHand function Il-376
low-level 11-164 PtrToHand function Il-375
spool/print-a-page N12S PttToXHand function Il-375
printing gratPort Il-147, T-114 PtrZone function Il-38
Printing Manager 1-13, 11-145, V-407, P-23, PtToAngle procedme 1-175
164, T-113 pulse-width encoding T-224
routines D-157 purge bit Il-25
printing resource T-26 purge warning procedure ll-23
private scraps 1-461 purgeable block 1-76, Il-10, 41, T-147
privilege violation T-189 purgeable resource T-73
PrJobDialog function 11-158, V-408 PurgeMem procedure Il-40,N51
PrJoblnit function N95 PurgeSpace procedure IV-78
PrJobMerge procedure 11-159, V-408 purging T-148
procedure-oriented programming P-142 purging a block 1-76, Il-14, 40
processor bus to NuBus state machine Cl-9 PutScrap function 1-459
processor priority Il-196
ProcPtt data type 1-78
product safety
Macintosh SE C14-10 Q
Macintosh II C7-5
programming seminars P-156
programs/programming See also applications quadrature enooding T-234
event-driven P-7 quadrature signal T-234
key ideas P-5 QDError function V-145
object-oriented P-141 QDProcs data type 1-197
procedure-oriented P-142 QDProcsPtr data type 1-197
sample P-139, 156 QElem data type 11-373
segment loader and P-53 QElemPtt data type 11-373
..taking apart" P-156 QHdr data type 11-372

Index I: General Index 33


Inside Macintosh X-Ref

QHdrPtr data type 11-373 routines Il-249


QTypes data type Il-373 RAMBase global variable 1-87
queue 11-373, N2 RAMSDClose procedure Il-250
drive Il-127, IV-181 RAMSOOpen function 11-249
driver 1/0 Il-180, 191 Random function 1-194
file 1/0 Il-97, 124, IV-115, 175 random number generator 1-194, 11-407
manipulation Il-382 randSeed global variab•e 1-163, 194
Time Manager IV-299 raster scanning T-214
vertical rettace Il-350, 352 rawkeycodes V-190
volume-control-block 11-125, IV-176 'RDEV' resource IV-216
QuickDraw 1-11, 135, IV-23, N21, P-60, 77, rDocProc P-92
T-19,51,57,63,66,82, 102, 104, 105, Read function
107' 114, 119, 124, 142, 143, 215, 216, high-level IV-109
238 Device Manager Il-178
See also Color QuickDraw File Manager 11-92
color Nl20, Nl63 low-level IV-139
communication with Font Manager 1-224, Device Manager 11-185
IV-33 File Manager Il-110
cursors and P-84 read-modify-write indivisible bus operation C5-8
fonts and P-82 read ttansactions C3-6
graphics T-83 read/write pennission 11-83, IV-95
icons and P-83 ReadDateTime function Il-378
internal pict def N21 reading from files P-131
lines and P-78 ReadPacket function 11-327
patterns and P-81 ReadRest function 11-327
pens and P-78 RealColor function V-141
picture P-86 RealFont function 1-223
polygons and P-87 reallocating a block 1-76, Il-14
programming model P-63 ReallocHandle procedure 11-35
regions and P-85 real-time clock T-222
routines 1-162, IV-23 RecoverHandle function Il-35, N23
shapes and P-79 Rectdata type 1-141
text and 1-233 rectangle 1-140, P-77, 80
text measwing N26 routines 1-174
using 1-100 RectlnRgn function 1-185
Quit command 1-57 RectRgn procedure 1-183
RF.dit T-79
reference number of a resource file 1-105
reference value
R control 1-316
window 1-274
region 1-141, T-86
radio button 1-312, 404, T-54 gratPon T-92
dimmed T-55 QuickDraw and P-85
Radius FPD NlOO routines 1-181
RAM Ill-17, IV-246, T-2, 140, 211 of a window P-92
accessing from cards C13-ll Region data type 1-141
Macintosh SE Cl2-5 register 0 V-365
Macintosh Il Cl-5 register 3 V-365
RAM Serial Driver 1-13, Il-246, T-169 register-based routines 1-90, 93
advanced Control calls Il-254 register-saving conventions 1-94
Device Manager calls 11-248 RegisterName function Il-322, V-513

34 Index I: General Index


Index I: Generallndex

relative handle 11-24 getting and disposing of 1-118


releue timer 11-270 graphic 1-147
rel~ defined C2-8 header 1-128
ReleueResoun:e procedure 1-120, P-103, 179 ID 1-108, T-69, 76
releasing blocks P-51 of fonts 1-234
relocatable block 1-75, 11-10, P-47, T-147 of owned resources 1-109
allocating 11-32 locking CS-7
releasing 11-33 map 1-106, 113, P-20, T-69, 72
properties of IV-78 name 1-110
RelRspCB function 11-319, V-514 owned 1-lO'J
RelString function IV-234 reference 1-110, T-73
RelTCB function 11-319, V-513 fonnat 1-130
RemoveName flDlction 11-324, V-513 specification 1-103, 107
removing templates 1-108, 423
controls P-112 type 1-103, T-69, 75
menus P-101 determining 1-117
Rename function list 1-107, IV-17, V-30
high-level 11-96, IV-114 reserved N32
low-level 11-118, IV-153 within a resource 1-127
reply record P-125 resource compiler P-140
structure of P-127 resourcedecompiler P-140
ReqLislRec record V-144 resource editor P-140, T-79
ResEdit N40, P-140, T-79 Resource Manager 1-9, 101, IV-15, V-29, N78,
resomce editor T-80 Nl16, P-20, T-19, 49, 57, 68, 72, 103,
reselection phase IV-286 151, 154
ResErr global variable 1-116 routines 1-113, IV-15
ResError flDlction 1-116 using 1-112
ResErrProc global variable 1-116, N78 resources, and dialogs 1-402, 423
reserved bits Nl17, P-163 resources, Fmder-related m-10
Reserved field CS-7 resources, for menus 1-363, P-100
reserved heap space P-58 resources, max Nl41
ReserveEntty procedure V-143 resources, of windows 1-272
/RESET C2-5, C3-2, C6-2, C13-9 resources, pointed to by other resources 1-127
reset signal C3-2 response BDS 11-288, 314
ResetAlrtStage procedure 1-423 ResrvMem procedure 11-39
ResLoad global variable 1-118, N50 Restart command V-586
resource 1-103, P-19, T-15, 19, 34, 66, 68, 154 Restart procedure 11-385
access T-72 RestoreAS procedure 11-386, N136
attributes 1-111, T-73 RestoreEntries procedure V-144
getting 1-121 ResType data type 1-107
setting 1-122 result code 1-116, 11-27, 374, N117
data 1-106, T-69, 72 assembly language 1-94
file 1-105, T-44, 57, 69, 70, 74 list III-205, V-597
attributes 1-126 Resource Manager IV-18
current 1-105, 116 Resume button T-188
fonts in 1-234 resume procedure 1-411, 11-358, T-188
fonnat 1-128 ResumeProc global variable 1-411
information 1-121 Return From Execution (RTE) instruction T-
opening and closing 1-114 189
opening order 1-104 Return key T-56
sttucture 1-105 RetransType data type 11-298
fork 1-105, 11-81, IV-93, N74, P-122, T-68 retry N9

Index I: General Index 35


Inside Macintosh X-Re/

count Il-266 /RQST C2-5, C5-2, 3, 6, 9, C6-2, 8


interval Il-266 RS-232C T-229
Reven to Saved command 1-57 RS-422 T-228
RevisionLevel field C8-7 RsrcMapEntry function IV-16
Rez P-140, T-80 Rsraonelnit procedure 1-114
ROB T-99, 100 RstFilLock function
ROB space V-42, T-100 high-level Il-96, IV-114
ROB value V-48, T-101 low-level Il-117, IV-152
ROBBackColor procedure V-68 RstFLock function Il-96, IV-114
ROBColorrecord V-48, V-136 RTMP ll-265
ROBForeColor procedme V-68 socket Il-265
ROB2CMY procedure V-175 stub ll-265
ROB2HSL procedure V-175 R/W Cl3-9
ROB2HSV procedure V-175
RGetResource function V-30
RgnHandle data type 1-142
RgnPtr data type 1-142
RMaker N46 s
RmveReference N2
RmveResouree procedure 1-113, 124
RmvTime procedure IV-300 safetY
RndSeed global variable 1-195 Macintosh SE Cl4-10
ROM W-18, IV-247, T-2, 14, 213 Macintosh ll C7-5
declaration C8-2, C9-1 l sample program 1-13, P-139, 156
Macintosh SE C12-6 sampled sound synthesi7.er V-475, T-173
Macintosh Il Cl-5 sampling edge, defined C2-8
ROM checksum N139 SANE Il-405, IV-69, See also C SANE
ROM resource IV-18, V-30 Library
list IV-19, V-32 Save As command 1-57, T-157
map IV-19 Save command 1-57, T-157
overriding IV-20 SaveEntries procedure V-144
ROM Serial Driver 1-13, Il-246, IV-225 SaveOld procedure 1-296
advanced Control calls IV-226 SaveUpdate global variable 1-297
Device Manager calls Il-248 SaveVisRgn global variable 1-293
routines Il-250 sBlock data type C8-2, C8-3
ROM85 N117 sBoocReconl V-422
ROMBase global variable 1-87, Il-383, Ill-18, SCalcSPtr function V-455
IV-236, Cl-5, C12-6 SCalcStep function V-453
ROMFontO global variable 1-233 ScalePt procedme 1-195
ROMMaplnsert global variable IV-19 scaling factors 1-218
romStart constant Cl-5, C12-6 SCardChanged function V-452
root directory IV-91 sec III-22, IV-248, N2, N56
routine selector 1-483 interrupts Il-198
File Manager IV-118 SCCRd global variable Il-199, m-25
List Manager IV-269 SCCWr global variable Il-199, m-25
SCSI Manager IV-289 schematic
routing table Il-265 NuBus Test Card CFoldout 3
Routing Table Maintenance Protocol (RTMP) SCSI-NuBus Test Card Cl0-14
Il-265, T-183 SCkCardStatus function V-450
row width 1-143, T-89 SCNolnc N96
rowBytes Nl17, P-162 scrap
rPage N33, N72 between applications 1-453

36 Index I: Generallndex
Index I: General Index

in TextEdit I-373, 388 routines IV-289, V-574


scrap file I-453, T-63 writing a driver IV-292
Scrap Manager 1-12, 451, IV-61, T-20, 63 SCSI-NuBus Test Card Cl0-10. See also cards
routines 1-457 (NuBus); Macintmh II; NuBus; NuBus Test
ScrapCount global variable 1-457 Card
ScrapHandle global variable 1-457 hardware overview ClO-11
ScrapName global variable 1-457 PAL descriptions Cl0-15
ScrapSize global variable 1-457 PAL listings for CB-1
ScrapState global variable 1-457 schematic of Cl0-12
ScrapStuff data type 1-457 software overview Cl0-10
Scratch8 global variable 1-85 timing diagram Cl0-14
Scratch20 global variable 1-85 SCSICmd function IV-290, N96
ScrDmpEnb global variable 1-258 SCSIComplete function IV-291, N96
screen SCSIDispatch ttap macro V-574
buffer fil-18, 19, IV-247, T-82, 142, 215 SCSIGet function IV-289, N96
configuration V-127 SCSIInsttdata type IV-287
font T-118 SCSIMsgln function V-575
location P-161 SCSIMsgOut function V-575
size P-161 SCSIRBlind function IV-290, V-574, 576, N96
width P-162 SCSIRead function IV-290, N96
screen utility resource T-78 SCSIReset function IV-289
screenBits global variable 1-145, 163, N2, SCSISelANfunction V-575
Nll7 SCSISelect function IV-290
screenBits.baseAddr Nl 17, P-161 SCSIStat function IV-291, N96
screenBits.bouncls Nl17, P-161 SCSIWBlind function IV-291, V-574, 576
screenBits.bounds.right ~-162 SCSIWrite function IV-291
screenBits.rowBytes Nl 17, P-162 SCStop N96
ScreenRes procedure 1-473 SDeleteSR1Rec function V-451
screenRow Nll7 sDriver directory C8-13, 14
ScrHRes global variable I-473 sDriver record C9-5
script V-294,T-19,82,110 SdVolume global variable 11-232
Script Interface System V-295, T-111 SE-Bus expansion interface 12-6, 13-5 See
Script Manager V-9, V-293, T-19, 110 also cards (Macintosh SE); Macintosh SE
featmes V-303 SearchProc function V-146
Print Action routine Nl 74 Seawell Inspector P-151
routines V-306 SEDiock packed record V-441
scripts (HyperTalk) P-150 second sound buffer Nl 13
ScriptUtil macro V-306 second video buffer Nl 13
'scm' resource V-127, P-88 secondary ordering V-291
ScrnBase global variable 11-19, 21, Nl17, T- Secs2Date procedure 11-380
143 sector 11-211, T-163
scroll bar 1-47, 312, T-20, 34, 48, 53, 54 SectRectfunction 1-175
updating 1-291 SectRgn procedure 1-184
scrolling arrow T-46 SeedCFill procedure V-71
scrolling menu indicator T-46 SeedFill procedure IV-24
ScrollRect procedure 1-187 segment 11-55, T-150
ScrpSTElement V-266 Segment Loader I-12, 11-53, IV-83, P-53, T-21,
ScrpSTTable array V•266 135, 147, 150
ScrVRes global variable 1-473 error T-190
SCSI See Small Computer Standard Interface routines 11-57
SCSI driver Nl59 selecting IV-5
SCSI Manager IV-283, V-573, N96 selection phase IV-286, T-175

Index I: General Index 37


Inside MacintoshX-Ref

selection range 1-375 SetCursorprocedure 1-167,P-84, 179


SelectWindow procedure 1-284, P-37, 98, 179 SetDAFont procedure 1-412
SelITextpiocedure 1-422,P-110 SetDateTune function 11-379
SendBehind procedure 1-286 . SetDefaultStartup procedure V-354
SendRequest function 11-316, V-513 SetDeskCPat procedure V-210
SendReset command V-363, 364 SetDeviceAttnbute procedure V-124
SendResponse function 11-317, V-513 SetDltem procedure 1-421, N34
sequence number of a datagram 11-UJ6 SetEmptyRgn procedure 1-183
SerClrBrk function 11-253 SetEnlries procedure V-143
'SERD' resource IV-225 SetEnttyColor procedure V-165
SerGetBuf function 11-253 SetEntryUsageprocedure V-165
SerHShake function Il-251, N56 SetEnvirons function V-314
serial communication 11-2A5, T-176, 2A6 SetEOF function P-132, 180
hardware m-22 high-level 11-93, IV-111
Serial Communications Controller (SCC) m- low-level 11-112, IV-142
22, IV-248, Cl-3, Cl2-4, T-177, 180, SetEventMask procedure II-70
181, 192,216,217,228 SetFilelnfo function
serial data Il-2A5, T-177 high-level D-95, IV-114
Serial Driver 1-13, 11-243, IV-225, T-22, 169, low-level 11-116, IV-150
176,229 SetFilLock function
advanced Conttol calls 11-254, IV-226 high-level II-95, IV-114
Device Manager calls ll-2A8 low-level 11-116, IV-151
routines Il-249 SetFilType function 11-117, IV-153
serial l/O T.:.228 SetFinfo function 11-95, IV-114
serial port IV-225, T-131 SetFLock function 11-95, IV-114
SerReset function 11-250 SeaFontLock procedure 1-223
SerSetBrk function 11-252 SetFPos function P-131, 132, 180
SerSetBuf function 11-251 high-level 11-93, IV-110
SerShk data type 11-252 low-level 11-111, IV-141
SerStaRec data type 11-253 SetFractEnable IV-32
SerStatus function 11-253, N56 routine V-180
server V-522 SetFScaleDisable procedure IV-32
Service Request Enable V-366 SetGDevice procedure V-123
session V-522 SetGrowZone procedure Il-42
SetADBinfo function V-370 SetHandleSize procedure Il-34
SetAppBase procedure II-28 Setltem procedure 1-357, P-104, 180
SetAppmase procedure D-28 SetltemCmd procedure V-2AO
SetApplLimit procedure 11-30 Setltemlcon procedure 1-359, V-2A6
SetCatlnfo function IV-156 SetltemMark procedure 1-359, V-2A6
SetCCursor procedure V-75, P-88, 179 SetltemStyle procedure 1-360
SetChooserAlert function V-431 SetIText procedure 1-422
SetClientID procedure V-147 Setltmlcon procedure 1-359
SetClikLoop procedure 1-390 SetltmMark procedure 1-359
SetClip procedure 1-166 SetllmStyle procedure 1-360
SetCPixel procedure V-70 SetMaxCtl procedure 1-327
SetCRefCon procedure 1-327 SetMCEnlries procedure V-239
SetCTitle procedure 1-321 SetMCinfo procedure V-239
SetCtlAction procedure 1-328 SetMenuBar procedure 1-355, P-102, 180
SetCtlColor procedure V-222 SetMenuFlash procedure 1-361
SetCtlMax procedure 1-327 SetMFJash procedure 1-361
SetCtlMin procedure 1-326 SetMinCtl procedure 1-326
SetCtlValue procedure 1-326 SetOrigin procedure 1-166, N72, P-76, 180

38 Index I: Generallndex
Index I: General Index

SetOSDefault procedure V-355 SFPGelFile procedure 1-526


SetPalette procedure V-162 SFPPutFile procedure 1-523
SetPBits procedure 1-165 SFPutFile procedure 1-519, P-125, 128, 162,
SetPenState procedure 1-169, P-180 181
SelPort procedure 1-165, P-63, 64, 67, 87, 97, SFReply data type 1-519
180 SFSaveDisk global variable 1-519, IV-72, N80
SetPortBits procedure 1-165 SFfypeList data type 1-523
SetPortPix procedure V-76 SGetBlock function V-445
SetPt procedure 1-193 SGetCString function V-445
SetPtrSize procedure 11-37 SGetDriver function V-455
SetRecRgn macro 1-183 shapes, QuickDraw and P-79
SetRectprocedure 1-174 shared bit Nl 16
SetRectRgn procedure 1-183 shared files V-xxx, Nl 16
SetResAttrs procedure 1-122, N78 Shell See MPW Shell
SetResFileAttrs procedure 1-127 shell application T-124
SetReslnfo procedure 1-122 shell script T-242 .
SetResLoad procedure 1-118, N50 ShieldCursor procedure 1-474
SetResPurge procedure 1-126, Nl 11 Shift key P-34, T-40, 43, 47, 62
SetRsl N128 ShowConttol procedure 1-322, P-113, 114, 181
SetScript function V-313 ShowCursor procedure 1-168, P-84, 181
SetSelfSend function V-514 ShowDitem procedure IV-59
SetSoundVol procedure Il-233 ShowHide procedure 1-285
SetStdCProcs procedure V-77 ShowPen procedure 1-168
SetStdProcs procedure 1-198 ShowWindow procedme 1-285
SetString procedure 1-468 Shut Down command V-586
SetStylHandle procedure V-268 Shutdown Manager V-585, T-23
SetSysJustprocedure V-316 routines V-587.
SetTagBuffer function 11-214 uap macro V-587
SetTime procedure Il-380 ShutDwnlnstall procedure V-588
SetTimeout procedure V-356 ShutDwnPower procedure V-587
SetTrapAddress procedure 11-384, IV-234, N2 ShutDwnRemove procedure V-588
setting up menus P-101 ShutDwnStart procedure V-587
SetUpA5 procedure Il-386, N136 signal line detenninacy C3-3
SetVideoDefault procedure V-355 Signals procedure N88
SetVol function signature ill-9, T-126
high-level 11-89, IV-107 SignedByte data type 1-78
low-level 11-105, IV-132 SIMM See Single In-Line Memory Module
SetWmColor procedure V-'1ff/ sine wave T-171
SetWindowPic procedure 1-293 SlnfoRecord packed record V-447
SetWordBreak procedure 1-390 single data cycle uansactions C3-6
SetWRefCon procedure 1-293 Single In-Line Memory Module (SIMM) IV-
SetWTitle procedure 1-284 246, N176, T-212
SetZ.one procedure Il-31, NS Slntlnstall fmiction V-427, C9-9
SEvtEnb global variable 1-443 SlntRemove function V-427, C9-9
SExec Block V-441, C8-2, 3 65C23 Versatile Interface Adapter (VIAl and
SExec function V-452 VIA2) Cl-3
SFGetF"ile procedure 1-523, N47, N77, N80, P- Si7.e data type Il-18
125, 162, 181 size
SFindDevB~ function V-451 of screen P-161 ·
SFindslnfoRecPtr function V-455 of parameters 1-90
SFindsRsrcPtt function V-456 of variables 1-85
SFindStruct function V-446 size box 1-287 See also grow region

Index I: General Index 39


Inside Macintosh X-Ref

size correction Il-24 software architecture of the Macintosh P-12


Si7.eControlproced111e 1-326,P-113,181 See also applications;
SizeResource function 1-121 programs/prognug
SizeRsrc function 1-121 softwareovemmenor Il-246, T-178
SizeWindow proced111e 1-290, P-98, 181 SONY driver N70
slave, defined C2-8 Sony Sound Chip T-224
SlopeFromAngle function 1-475 sorting, int'l N153
slot C3-3 sound V-19
defined C2-9 without clicking N19
slot allocations C4-6 Sound cdev V-325
slot device interrupts C9-8 sound buffer D-233, m-18, 21, IV-247, N2,
slot ID N9, T-142, 188
defined C2-9 Sound Driver 1-13, Il-221, T-22, 169, 170
signals C2-5 hardware Il-233
slot interrupts V-426 routines Il-231
Slot Manager V-435, T-22, 209, C8-2 sound generator Il-223, ill-20, IV-247, T-142,
routines V-437 223
Slot Parameter Block V-439 Sound Manager V-473, T-22, 169, 172
Slot Resource Table V-437 commands V-482, 486
slot space C3-3, C4-2 routines V-477
defined C2-9 synthesizers T-173
SlotVInstall function V-567 sound procedure 1-409, 411, 425
SlotVRemove function V-567 SOWld syntllesizer T-170
Small Computer Standard Interface (SCSI) IV- SoundBase global variable m-21
251, 285, T-3, 163, 175,217,227 SoundDone function Il-232
driver Nl59 SowidLevel global variable Il-234
ldanager T-22, 175 SoundPtr global variable Il-227
pseudo DMA N96 source files P-139
Status phase N96 source transfer mode 1-157
Smal1Fract2Fix function V-175 /SP C2-5, C3-5, C6-2
Smalltalk P-147 space state 11-246
'snd ' resource V-476, 490 SpaceExtra procedure 1-172, P-82, 182
SndAddModifier fimction V-478 SPAlarm global variable See parameter RAM
SndChannel record V-477, 481 SPATalkA global variable See parameter
SndCommand packed record V-483 RAM
SndControl function V-479 SPATalkB global variable See parameter RAM
SndDisposeChannel function V-479 SpBlock packed record V-439
SndDoCommand function V-479 SPClikCaret global variable See parameter
SndDolmmediate function V-479 RAM
SndNewChannel function V-477 SPConfig global variable Il-305
Snd.Play function V-477 speaker volume Il-232, 371, T-132
SNextsRsrc function V-443 SPFont global variable See parameter RAM
SNextTypesRsrc function V-443 SPKbd global variable See parameter RAM
'sntll' resource V-476, 495 . split bar 1-49
socket D-265, IV-229, T-181 SPMisc2 global variable See parameter RAM
client 11-265, T-181 spool printing II-151, 153, T-116
listener 11-265 spool-a-page N72
writing your own D-324, 329 SPortSel data type Il-249
number 11-265 SPPonA global variable See parameter RAM
table 11-265 SPPortB global variable See parameter RAM
SOffsetData function V-452 SPPrint global variable See parameter RAM
sPRAMinit record structure C8-18

40 Index I: General Index


Index I: General Index

SPRAMRe.cord packed record V-448, /START Cl-8, C2-5, C3-4, CS-2, 6, 7,


SPrimarylnit function V-452 C6-2, 8
SProcRec record V-146 start bit 11-245, T-177
SPttToSlot function V-451 start cycle, defined C2-9
spurious attempt T-189 Start Manager V-347, T-23
SPutPRAMRec function V-449 routines V-352
/SPV C2-5, C3-5, C6-2 StartSound procedure 11-231, Nl9
SPValid global variable See parameter RAM startup V-349
SPVolCtl global variable See parameter RAM installing a driver at C9-5
square wave T-171 startup applications P-21, T-124
square-wave sound T-224 startup screen V-121
square-wave synthesi7.er 11-223, 225, T-170 Startup device cdev V-325
SReadByte function V-444 startup process V-422
SReadDrvIName function V-444 Stash function 11-195
SReadFHeader function V-449 stationery pads Nl 15
SReadlnfo function V446 Status function
SReadLong function V-445 high-level 11-179
SReadPBSize function V-453 low-level 11-186
SReadPRAMRec function V-448 status infonnation 11-176, C3-9
SReadSttuct function V-446 status monitoring, in graphics port record P-74
SReadWord function V-445 status phase IV-286, T-176
sResowce V-437, CS-3 status routine of a driver 11-187, 194
directory V-437, C8-4, 9 status routines C9-l 7
list V-437 StdAJc procedure 1-199
list entries CS-4, 10, 12 StdBits procedure 1-199
type format C8-12 StdComment procedure 1-199
sRsrc_BootRec C8-14 StdGetPic procedure 1-200
sRsrc_DrvrDir C8-13 StdLine procedure 1-198
sRsrcFlags C8-16 StdOval procedure 1-199
sRsrcHWDevld C8-16 StdPoly procedure 1-199
SRsrclnfo function V-442 StdPutPic procedure 1-200
sRsrc_lcon C8-13 StdRect procedure 1-198
sRsrc_LoadRec C8-14 StdRgn procedure 1-199
sRsrc_Name C8-13 StdRRect procedure 1-198
sRsrc_Type C8-12 StdText procedure 1-198
SSearchSRT function V-454 StdTxMeas function 1-199
stack 1-73, 11-17, C12-5, P-46, T-142, 144 STElement record V-262
stack frame 1-96, 11-17, T-145 StillDown function 1-259
stack overflow error T-190 stop alert P-106, 107, T-59
stack-based routines 1-90 stop bit II-245, T-177 .
StackSpace function IV-78 StopAlert function 1-419, V-284, P-109, 182
StageList data type 1-424 StopSound procedure II-232
stages of an alert 1-409 STR N29
Standard Apple Numeric Environment (SANE) string comparison 1-501, 506, 11-376, NI 78
T-184, 207 See also C SANE Library string list 1-468
Standard C Library P-140, 141 resource format 1-476
Standard rlle Package 1-12, 515, IV-71, N2, string manipulation 1-468
N44, N47, N80~ P-123, 125, T-14, 21, 77, StringHandle data type 1-78
154, 157 StringPtt data type 1-78
dialogbox T-157 StringToNum procedure 1-490
routines 1-519 StringWidth function 1-173, N26
StripAddress function V-593

Index I: General Index 41


Inside MacintoshX-Ref

Str32 data type D-298 System


Str255 data type 1-78 clock (NuBus) C2-6
structure region ofa window 1-271,P-92, T-51 environment record V-6
StScrpRec V-265 error alert 11-357, T-187
StuftHex procedure 1-195, P-81 table 11-357, 359, T-188
style See character style error ID 11-357, T-187
Style data type 1-152 error recovery T-188
style dialog Il-149 event mask 1-254, 11-70
Style menu 1-61 font 1-219, IV-31
style record P-118 size 1-219, IV-31
Styleltem data type 1-152 globals P-161
StyleRun V-261 heap I-74, 11-9, N83, P-46, 164
subclass/subclassing P-147 size NS~. Nl 13
subdirectory IV-89, T-155 out-of-memory conditions and P-57
Sublaunching Nl26 startup
submenus See menus/menu items environment IV-256
submenu delay V-24 infonnation 11-120, IV-160, 164
SubPt procedure 1-193 traps IIl-215, IV-305, V-603
SUpdateSRT function V-454 use of memory by P-52
superclass P-147 versions IV-xi
super slot C3-3 3.2 N96
super slot space C3-3, C4-2 window 1-270, 438
defined C2-9 System Error Handler 1-13, 11-18, 355, IV-231,
SwapMMUMode procedure V-593, Cl-6 V-571, T-23, 142, 146, 186, 187
Switcher N2, T-27, 135 routine D-362
switch-launching T-123 system event T-39
SWSynthPtr data type Il-225 System file 1-103, IV-255, V-34, P-20, T-2, 16,
SWSynthRec data type Il-225 26,38,59, 77, 122, 157
synchronous execution System Folder T-122, 131, 133, 134
AppleTalk Manager Il-273 system font T-106
Device Manager Il-180 system heap T-141
File Manager Il-97, IV-115 system heap zone T-145
synchronous modem T-229 system resource T-71, 77
SynListHandle global variable V-182 system shutdown T-184
synthesizer buffer 11-225, ·T-172 system software T-26, 122
synthesizers V-475 system startup T-184
synthetic font V-182 alert messages T-190
SysBeep procedure Il-385, V-592 system startup disk T-132, 133
SysEdit function 1-441 system startup information T-40, 160
SysEnvirons function V-5, N129, Nl56 System V Interface Definition T-239, 245
SysEnvRec record V-6 SystemClick procedure 1-441, P-35, 182
SysEJTOr procedure Il-362, V-572 SystemEdit function 1-441
SysEvtMask global variable Il-70 SystemEvent function 1-442, NS, N85
SysFontFam global variable IV-31 SystemMenu procedure 1-443
SysFontSiz global variable IV-31 SystemTaskprocedure 1-442,444, 11-189, N85
SysMap global variable 1-114 SystemZ.one function 11-32
SysMapHndl global variable 1-114 SysZone global variable 11-19, 21, 32, N2
SysParam global variable 11-369
SysPannType data type 11-370
SysPPtr data type Il-370
SysResName global variable 1-114

42 Index I: General Index


Index.I: Genera/Index

T TESetJust procedure 1-387


teSelRect N82
TESetSaapLen procedure 1-390
Tabkey T-157 TESetSelect procedure 1-385, Nl27
tag byte Il-24, IV-223 TESetStyle procedure V-269, Nl31
tags N94 TESetTextprocedure 1-383,NlS
Talk command V-363, 364 test cards See NuBus Test Card; SCSl-NuBus
target device IV-285, T-175 Test Card
TBox P-143 TestConttol function 1-325
TDftBitsBlk record V414 TestDeviceAuribute function V-124
TEActivate procedure 1-385 testing V-28
· 'i'EAutoViewprocedure IV-57 TestPattem field C8-7
TECalText procedure 1-390 TEStyleRec V-261
teCarHook N82 TEStyleTable V-262
Technical Inttoduction to the Macintosh Family TEStyllnsert procedure V-268, Nl31
P-xviii TEStylNew fllllction V-268, N131
TEClick procedure 1-384, P-118, 182 TEStylPaste procedure V-269
TECopy procedure 1-386, P-119, 182 TEToScrap function 1-389
TECut procedure 1-385, P-119, 182 TEUpdate procedure 1-387
TEDeactivate procedure 1-385 text
TEDelete procedure 1-387, P-119, 182 characteristics 1-151
TEDispatch V-'1fJ7 Color QuickDraw and P-88
TEDispose procedure 1-383, P-118, 183 description, in graphics port record P-71
TEDoTextglobal variable 1-391,N82 drawing 1-233, V-81
TEFromScrap function 1-389 in a dialog/alert 1-404, 408, P-110
TEGetHeight function V-'1fJ9, Nl31 mask mode V-83
TEGetOffset function V-268 selection 1-375
TEGetPoint function V-269 streaming 11-165
TEGetScrapLen function 1-389 7EXT' data type 1-455
TEGetStyle procedure V-269 text editing T-60
TEGetText function 1-384 text justification T-112
TEHandle data type 1-374 TextBox procedure 1-388, P-115, 183
teHiHook N82 TextEdit 1-12, 371, IV-57, V-259, N82, N127,
TEidle procedure 1-384 Nl31, N156, P-115, T-20, 58, 60, 110,
TElnit procedure 1-383, P-107, 118, 183 112
TEinsert procedure 1-387, P-120, 183 routines 1-383, IV-57, V-267
TEKey procedure 1-385, P-119, 183 scrap 1-373, 388
telnet T-247 TextFace procedure 1-171, P-82, 184
templates P-9, T-76 TextFont procedure 1-171, P-82, 184
TENew function 1-383, P-118, 183 TextMode procedure 1-171, P-82, 184
tenure, defined C2-9 TextSizeprocedure 1-171, P-82, 184
TEPaste procedure 1-386, P-119, 183 TextStyle V-265
TEPinScroll procedure IV-57 TextWidth function 1-173, Nl31
TEPtr data type 1-374 'IFSTagData IV-223
TERec data type 1-377 TGetRotnBlk record V-415
TERecal global variable 1-391 TGetRslBlk record V412, Nl 73
TEReplaceStyle procedure V-270 TGnlData record V410
TEScrapHandle function 1-389 theGDevice V-118
TEScroll procedure 1-388, N22, Nl31, P-120 TheMenu global variable 1-357, V-244
TEScrpHandle global variable 1-389 thePort global variable 1-162, 165, N25
TEScrpLength global variable 1-389, N82 TheZone global variable Il-31
TESelView procedure IV-57 32-bit to 24-bit address translations C4-4

Index I: General Index 43


Inside Macintosh X-Ref

thought police Nl 17 TopMem function 11-44


thousands separator 1-497 TopMenultem global variable V-249
THPrint data type 11-149 TOval P-143
thread record IV-173 TPPrint data type 11-149
three-state, defined C2-10 TPPrPort data type 11-147
thumb 1-312 TPrDlg N95
THz data type 11-22 TPrlnfo data type 11-150
TickCount function 1-260 TPrint data type 11-149
ticks 1-246, P-164, T-43 TPrJob data type 11-151
Ticks global variable 1-260, 11-198, N2 TPrPort data type 11-147
Time global variable 11-198, 369, 378 TPrStl data type II-152
Time Manager IV-297, N2, T-23, 185, 186 TPrStatus data type Il-161
routines IV-300 TPrXlnfo data type 11-152
time operations 11-377 trace exception T-189
TimeDBRA variable V-352 track T-163
timeout C8-18, N9 track-cache IV-224, N8 l
TuneSCCDB variable V-352 track on a disk Il-211
TimeSCSIDB variable V-352 TrackBox function IV-50, N79
timing TrackControl function 1-323, P-114, 184
arbitration CS-5, C6-8 TrackGoAway fwiction 1-288, P-98, 184
data ttansfer C6-7 transaction Il-266
of NuBus block read transaction C3-13 ddined C2-9
of NuBus block write transaction C3-14 ID Il-266
of NuBus write transaction C3-8 . release Il-270
for reading and writing RAM from a card C13- request 11-266
14 response Il-266
requirements C6-7 transaction timing CS-5
summary C6-8 Transcendental Functions Package 1-13, Il-403,
transaction CS-5 407, V-595, T-3, 77
utility C6-7 ttansfer instruction block IV-287
of video and MC68000 access to RAM Cl3- transfer mode 1-156, V-57
12 transfer mode coding C3-5
timing-sensitive code P-163 Transliterate function V-311
/fMO, /fMl C2-5, C3-4, C6-2 Transmission Control Protocol/Internet Protocol
TMON N7, P-151 (TCP/IP) T-247
TmpResLoad global variable IV-19 trap T-25, 217
TMTask data type IV-299 TRAP instruction N2
TObject P-147 trap dispatch table 1-87, IV-13, T-24
ToExtFS global variable 11-128 routines Il-383
toggled command 1-53, 357 trap dispatcher 1-89, T-24
tolerant colors V-155 trap macro 1-88, 90
Tone data type 11-225 · list m-215, IV-305, V-603
Tones data type II-225 ttap mechanism T-24
Toolbox 1-9, P-17, 90 ttap number 1-89, 384, IV-13
calls P-166 Trap on Overflow (TRAPV) instruction T-189
Toolbox Event Manager 1-11, 241, V-189, T- trap patching N25
19, 28, 36, 47, 50, 52, 229, 231 trap word 1-88, IV-13
routines 1-257 TrapType data type IV-233
Toolbox Utilities 1-12, 465, IV-63, T-21 TRel See transaction release
routines 1-467, IV-63 TReq See transaction request
ToolScratch global variable 1-85 TResp See transaction response
TopMapHndl global variable 1-115 trigonometric functions Il-407

44 Index I: General Index


Index I: General Index

TRslRec record V-411 UpdtDialog procedure IV-60


TRslRg record V-411 uppercue T-76, 158
try again later C3-10 UprString procedure 11-377
TSetRslBlk record V-414 use type 11-305
24-bit to 32-bit address translations C4-4 User Interface Toolbox 1-9, T-7, 14, 18
type coercion 1-79, V-66, V-200 components T-17
type size See font size user bytes Il-2'i6
txRatio N35 user groups T-257
user interface guidelines 1-23, V-13, P-6, 25
UseResFlle procedure 1-117
userltems N34
u in a dialog 1-404, 405
installing 1-421
routines Il-374
IUDS C13-9 USP N2
UNamAcc N6 UTableBase global variable 11-192
urumerted, defined C2-10 Utilities, Operating System 1-13, 11-307, IV-
Undo command 1-59, P-24, T-47 233
unimplemented core routine T-189 routines Il-374, IV-233
unimplemented instruction 1-88, T-25 Utilities, Toolbox 1-12, 465, IV-63
UnlmplTrapNum N156 routines 1-467, IV-63
UnionRect procedure 1-175 utility signals C2-5, C3-2
UnionRgn procedure 1-184 utility timing (NuBus card) C6-7
UniqueID function 1-121
UniquelID function IV-16
unit attention N92
unit number Il-191, IV-215
unit table Il-191, IV-215, N71 v
universal defprocs V-206
UNIX Operating System T-6, 206, 238
UNLK N88 valence of a directory IV-91
unloading segments P-56 validity status 11-370
UnloadNBP function Il-324 ValidRect procedure 1-292
UnloadScrap function 1-458 ValidRgn procedure 1-292
UnloaclSeg procedure Il-59, P-56, 184 variation code
unlocked block 1-76, Il-10, T-147 control 1-328
unlocking a block 1-76, 11-41 window 1-298
UnlockRng function IV-139 VBL interrupt See vertical blanking interrupt
UnlodeScrap function 1-458 VBL tad 11-350, T-185
unmounted volume 11-79, IV-92, P-122, T-158 VBLQueue global variable 11-352
UnmountVolfunction VBLTaskdata type 11-350
high-level 11-90, IV-108 VCB data type 11-125, IV-176
low-level Il-106, IV-134 VCB Queue N24, N44
UnpackBits procedure 1-470, N86 vcbDrvNum N106
unpurgeable block 1-76, Il-10, 42, T-147 VCBQHdr global variable Il-126, IV-178
update event 1-244, 278, P-34, T-37, 40, 52 vcbRefNum Nl06
event message 1-252 vector 11-196
update region of a window 1-272, T-52 vector table Il-196
maintenance 1-291 Vendorlnfo C8-19
UpdateResFile procedure 1-125, NI 16 Vernier procedure NI 78
updating windows P-97 Versatile Interface Adapter (VIA) ID-39, Cl-3,
UpdtConlrOl procedure IV-53 Cl2-4, T-192,216,217,222

Index I: General Index 45


Inside Macintosh X-Ref

version data ID-10, T-127 NMA Cl3-8


version number of a file Il-81, IV-90 volume (on a disk) 11-79, IV-89, P-133, T-68,
version 2 pictures V-84 154
venical blanking interrupt ll-349, Ill-18, T-185, accea T-158
214 allocalion block map ll-122, IV-162
vertical blanking interval m-18, T-214 attributes ll-121, IV-162
vertical retrace intenupt 1-13, ll-349, T-23, 185 bitmap IV-167
Vertical Retrace Manager 1-13, Il-347, V-565, buffer 11-79, IV-92
T-23, 185 control block II-125, IV-92, 176
routines ll-351, V-567 index 11-102
vertical retrace queue ll-350, 352, T-186 infonnation ll-121, IV-161, 166
VHSelect data type 1-139 infonnation block IV-165
VIA N2 name 11-79, IV-90
global variable 1-198, m-39 reference number Il-79, IV-93, 98, P-124
interrupts ll-197, III-38, 41 volume allocation block map T-161
VIABase Nll 7 volume bit map T-161
video buffer N2 volume control block T-161
video card (for Macintosh II) Cl 1-2. See also volume information T-158, 161
cards (NuBus); Macintosh ll; NuBus volume name T-158
access to control space for CLUT write Cl 1- volume-control-block queue ll-125, IV-176
12 volume (speaker) II-232, 371
access to RAM space Cll-10 NPA C13-8
blockdiagram Cll-2 vRefNum N44, N77
card connectors Cl 1-18 VRemove function 11-351
color look-up table (CLU'I) Cll-11
declaration ROM operation C 11-15
fmnware levels Cl 1-17
Frame Buffer Controller (FBC) Cl 1-4 w
functional operation Cl 1-2
horizontal and vertical scan timing Cl 1-13
output connector pin assignments Cl 1-18 WaitMouseUp function 1-259
scaled pixel clock periods Cl 1-5 WaitNextEvent Nl58
scan line horizontal timing regions Cl 1-6 Wave data type ll-227
scan line vertical timing regions Cl 1-8 wave table synthesizer V-475, T-173
video declaration ROM C9-l l waveform 11-223, T-170
video device record C9-12 desaiption ll-224, T-172
video display T-82, 142 wavelength ll-223, T-171
Video Driver C9-10, T-22 WavePtr data type II-227
example C9-18 'wctb' resource V-201, 204
routines C9-13 WDEF NllO
video interface Ill-18, IV-247, T-214 wDev N72
video RAM Cll-9, T-188 WDPBPtr data type IV-117
video scanning T-215 WDPBRec data type IV-127
view rectangle 1-374, P-116 WDRefNum N44, N77
Vlnstall function 11-351 white global variable 1-162
virtual key codes V-190 width (of screen) P-162
virtual memory T-206 width tables N92
virtual paging T-202 WidthListHand global variable IV-42
visible WidthPtr global variable IV-42
control 1-316 WidthTabHandle global variable IV-42
window 1-274 WidthTable data type IV-41
visRgn of a grafPort 1-149 WinCTab record V-202

46 Index I: General Index


Index I: General Index

window 1-44, 269, P-91, T-34, 48 worldng directory IV-98, Nl26


activation 1-279 control block IV-98
closing 1-45, 283, P-95 reference number IV-98
color table V-203 workstation V-522
defining your own 1-297 wraparound, of words 1-373
defproc V-205 Write function
description, in graphics port record P-69 high-level IV-110
drawing 1-278 Device Manager 11-179
frame 1-271, T-51, 52 rtle Manager 11-92
list 1-274, 277 low-level IV-140
mouse and P-97 Device Manager 11-185
mouse event handling in P-36 File Manager 11-110
opening 1-45, 282, P-95 write data sttucture 11-306
pointer 1-275 write transactions 3-Z8530 Serial
record 1-274, 276, P-93 Communications Controller (SCC) Cl-3,
regions 1-271, P-92, T-51 C12-4 .
resources 1-272 WriteDDP function 11-312, V-513
fonnat 1-302 WriteLAP function 11-307, V-513
sizing 1-47, 289 WriteParam function 11-382
splitting. 1-49 WriteResource procedure 1-125
standard state IV-7 writing direction T-112
template 1-274 writing to fdes P-132
types 1-273, P-91 WStateData data type IV-49
updating P-97
user state IV-8
zooming IV-7, 49
window class 1-274, 276 x
window definition
function 1-272, 298, IV-49, T-49
ID 1-273, 298 X2Fix function IV-65
Wmdow Manager 1-11, 267, IV-49, V-197, P- X2Frac function IV-65
91, T-20, 29, 36, 37, 48, 57, 76,95,97 XOn/XOff T-178
port 1-271, 282 XorRgn procedure 1-185
routines 1-281, IV-50, V-206 XPP (Extended Protocol Package) driver V-524,
using P-95 V-527, 530
window temp1ate T-49 ~ V-533
WindowList global variable 1-255, 277 example V-531
WindowPedt data type 1-275 resultcodes V-550
WindowPtrdata type 1-275 XPP command control block V-549
WindowRecord data type 1-276 XPP error reporting V-526
WMgrCPort V-205 XPP open session commands V-528
WMgrPort global variable 1-282 XPPParamBlock packed record V-535
word 1-42, C8-2, T-60
data type C8-2
defined C2-10
in TextEdit 1-373 z
word break routine 1-380
word break tables N182
word demarcation T-112 zero divide T-189
word wraparound 1-373, T-60 ZeroScmp function 1-458
word-description break tables V-309 Zone data type II-22
word-selection break tables V-309 zone

Index I: General Index 47


Inside Macintosh X-Ref

AppleTalk: Manager Il-266


htsb' Il-22
Memory Manager See heap zone
pointer Il-22
reoord Il-22
trailer Il-22
zoom region T-51
zoom window box IV-8
~mWindowprocedure IV-50, V-210

48 Index I: General Index


INDEX 11: CONSTANTS AND FIELD NAMES

A appOpen 11-58 bData 11-199


appPrint 11-58 bdConv 1-483, IV-67
abbrLen 1-500 arcProc 1-197 bDevCltoh Il-152
abOpcode m-so aRdCmd 11-194 bDraftLoop ll-151
abResult ID-50 ascent 1-173 bdsBufJAddr 11-314
abUserReference m-50 aSize IV-41 bdsBuffSz 11-314
accaear 1-446 aTalkA 11-370 bdsDataSz Il-314
accCopy 1-446 aTallcB 11-370 bdsEntrySz 11-314
accCursor 1-446 atDrvrVersNum V-6 bdsUserData Il-314
accCut 1-446 athens 1-219 bFileVers Il-151
accEvent 1-446 atp Il-313 bitlmage 1-231
accMenu 1-446 atpBitMap II-312 bitsProc 1-197
accPaste 1-446 atpControl 11-312 bJDocLoop 11-151
accRun 1-446, 11-189 atpEOMBit Il-313 bJobX 11-151
acCTable V-217 atpHdSz Il-312 bkColor 1-148, V-50
accUndo 1-446 atpMaxNum Il-314 bkLim Il-22
acFlags V-217 atpRelCode II-313 bkPat 1-148
acNext V-217 atpReqCode II-313 bkPixPat V-50
acOwner V-217 atpRespNo Il-312 blackColor 1-158
acRefCon V-217 atpRspCode Il-313 blend V-61
acReserved V-217 atpSize II-274 blue V-72
activateEvt 1-249 atpSTSBit II-313 blueColor 1-158
activDev V-331 atpTransID 11-312 bold 1-227
active 1-377 atpUserData II-312 boldBit 1-152
activeFlag 1-253 atpXOBit II-313 boldlbnl 1-424
activMask 1-254 autoKey 1-249 boldltm2 1-424
aCtl 11-199 autoKeyMask 1-254 boldlbn3 1-424
aData Il-199 autoTrack 1-329 boldltm4 1-424
addOver V-61 availableCmd V-482 bounds V-52
addPin V-61 awCTable V-201 boundsRect 1-423
addResFailed 1-116 awFlags V-201 boxDrwnl 1-424
addSize V-2.69 awNext V-201 boxDrwn2 1-424
aDetltem 1-408 awOwner V-201 boxDrwn3 1-424
adMax V-61 aWrCmd ·II-194 boxDrwn4 1-424
adMin V-61 awRefCon V-201 breakEvent 11-252
aFace IV-41 awReserved V-201 brRq 11-320
aFID IV-41 axis 1-332 bSpoolLoop 11-151
a1ann Il-370 btnState 1-253
allocPtr Il-22 B buffetCmd V-483
alphaLock 1-253 buffPtr 11-288
altDBoxProc 1-273 baseAddr V-52 buffSize 11-288
ampCmd V-483 baud300 11-250 buttonMsg IV-218
amplitude 11-225 baud600 11-250 bXtra V-415
amScriptAppFond V-312 baud1200 11-250
applEvt 1-249
applMask 1-254
baud I 800 11-250
baud2400 11-250
c
app2Evt 1-249 baud3600 11-251 cairo 1-219
app2Mask 1-254 baud4800 11-251 calcCRgns 1-329
app3Evt 1-249 baud7200 11-251 callBack V-481
app3Mask 1-254 baud9600 11-251 callBackCmd V-482
app4Evt 1-249 baudl 9200 11-251 cancel 1-407
app4Mask 1-254 baud57600 11-251 caretHook 1-377
appleMark 1-219 bCtl 11-199 caretState 1-377
applFont 1-219

Index II: Constants and Field Names 49


Inside MacintoshX-Ref

caretTime 1-377 contrlRFCon 1-317 dayl..eadingO 1-500


cautionlcon 1420 contrlTitle 1-317 dayOfWeek Il-378
cBodyColor V-220 contrlValue 1-317 days 1-500
ccReserved V-218 contrlVis 1-317 dBoxProc 1-273
ccSeed V-218 controlErr 11-161 dCtlCurTicks 11-190
cdevGenEII' V-335 controlList 1-276, V-199 dCtlDelay 11-190
cdevMemErr V-335 copy 1-519, 527 dCtlDriver Il-190
cdevResErr V-335 copyDev V-331 dCtlEMask Il-190
cdevUnset V-335 count 11-225, V-482 dCtlEnable 11-188
cellArray IV-264 countShown V-339 dCtlFlags Il-190
cells IV-264 courier 1-219 dCtlMenu 11-190
cellSize IV-263 crOnly 1-377 dCtlPosition Il-190
century 1498 crossCursor 1474 dCdQHdrs 11-190
cFrameColor V-220 crsrData V-63 dCdRefNum 11-190
chaICode 1-251 crsrHotSpot V-63 dCtlStorage 11-190
chaICodeMask 1-250 crsrlD V-63 dCtlWindows Il-190
checkBoxProc 1-315 crsrlData V-63 dDevLaser Il-152
checkMark 1-219 crsrMask V-63 ddpCheckSum 11-308
chExtra V-50 crsrType V-63 ddpDstNet 11-308
ciFlags V-159 crsrXData V-63 ddpDstNode Il-308
ciPrivate V-159 crsrXHandle V-63 ddpDstSkt 11-309
ciRGB V-159 crsrXTable V-63 ddpHopCnt 11-308
ciTolerance V-159 crsrXValid V-63 ddpHSzLong 11-300
ciUsage V-159 cTextColor V-220 ddpHSzShort 11-310
clearDev V-331 ctFlags V-135 ddpLength 11-308, Il-310
clickLoc 1-377 cThumbColor V-220 ddpLenMask 11-310
clickTime 1-377 ctSeed V-135 ddpMaxData Il-310
clikLoc IV-263 ctsEvent 11-252 ddpSize 11-274
clikLoop 1-377 ctSize V-135 ddpSrcNet 11-308
clikStuff 1-377 ctTable V-135 ddpSrcNode Il-308
clikTime IV-263 currFmt 1-497 ddpSrcSkt Il-300
clipRgn 1-148, V-50 currLeadingZ 1498 ddpType 11-30'J
closeDev V-331 currNegSym 1498 deActivDev V-331
cmdlnProg V-481 currSym 1 1497 decimalPt 1497
cmdKey 1-253 currSym2 1497 denom 1-224
cmpCount V-53 currSym3 1-497 descent 1-173
cmpSize V-53 currSymLead 1498 deselectMsg IV-218
CMY2RGB V-174 currTrailingZ 1-498 deskPatID 1-281
cntEmpty Il-22 cutDev V-331 destRect 1-377
cntHandles Il-22 cyanColor 1-158 device 1-148, 224, IV-41
cntNRel Il-22 dialogCltem V-201
cntRel Il-22 D diamondMarlc 1-219
code V-482 diBadMount Il-396
colrBit 1-148, V-50 dackRd IV-253 diFormat 11-396
comman<lldark 1-219 dackWr IV-253 diLoad Il-396
commentProc 1-197 data 1-146 diskErrs Il-215
config Il-370 clataS 11-251 diskEvt 1-249
contRgn 1-276, V-199 data6 11-251 disklnPJace 11-215
contrlAction 1-317 data7 11-251 diskMask 1-254
contrlData 1-317 data8 Il-251 dispCntl 1-329
contrlDefProc 1-317 dataBounds IV-264 diUnload 11-396
contrlHilite 1-317 dataHandle 1-276, V-199 diVerify Il-396
contrlMax 1-317 dataSize 11-288 diZao 11-396
contrlMin 1-317 dateOrder 1497 dlgltems V-339
contrlOwner 1-317 dateSep 1497 dlgPtr V-339
contrlRect 1-317 day 11-378 dmy 1-498
dayLdingZ 1498

50 Index II: Constants and Field Names


Index II: Constants and Field Names

dNeedGoodbye Il-188 envMacPlusKbd V-7 ffWTabOff IV-36


dNeedLock 11-188 envSE V-7 fgColor 1-148, V-50
dNeedTime Il-188 envStandADBKbd V-7 tHand IV-41
doAll V-269 envUnknownKbd V-7 fHasBundle Il-85, IV-105
doBColor V-281 envXL V-7 fID IV-41
doColor V-269 equals 11-320 fillerl 1-423
docUDlentProc 1-273 errNum 1-227 filler2 1-423
doFace V-269 evenParity 11-251 fillListMsg IV-217
doFont V-269 every V-482 fillPat 1-148
doFontName V-281 everyEvent 1-254 _ftllPixPat V-50
doMode v-281 eveStr 1-497 flmaging Il-161
doSize v-269 evtNotEnb 11-58 finvisible Il-85, IV-105
dQDrive 11-127, 215 evtQMessage II-71 firstChar 1-231
dQDrvSize 11-127 evtQModifiers II-71 firstMod V-481
dQDrvSz IV-181 evtQWhat Il-71 Fix2Smal1Fract V-174
dQDrvSz2 IV-181 evtQWhen Il-71 fixedFont 1-232, IV-35
dQFSID 11-127, 215 evtQWhere II-71 flags Il-22, V-481, 482
dQRefNum Il-127, 215 evType 11-373 il..andscape v-415
dragCnd 1-329 extendBit 1-152 flPiont IV-67
drawCnd 1-329 extra 1-227 flPoint 1-483
dReadEnable Il-188 flushCmd V-482
driverEvt 1-249 F fName 1-519, 527, 11-58
driverMask 1-254 fOnDesk IV-105
drvQType Il-373 face 1-224, IV-41 font 11-370
drvStsCode 11-215 false32b V-592 fontAscent 1-377
dsklnit 1-483, IV-67 family 1-224 fontHandle 1-227
dsNotThel V-572 fdComment IV-105 fontType 1-231
dStatEnable 11-188 fdCreator II-84, IV-104 fontWid IV-35
dtAddr V-4()6 tDesktop 11-85, IV-105 tPgDirty 11-161
dtFlags V-466 fdFlags 11-84, IV-104 framingErr 11-252
dtPann V-466 fdFldr 11-84, IV-104 frComment IV-106
dtReserved V-4(>6 fdiconlD IV-105 tRectHeight 1-231
dmation Il-225 fDisk 11-85, IV-105 fRectWidth 1-231
dWritEnable 11-188 fdLocation 11-84 freeCmd V-482
DYM V-290 FDLocation IV-104 freqCmd V-483
fdPutAway IV-105 frFlags IV-105
E fdType 11-84, IV-104 frLocation IV-105
fdUnused IV-105 fiOpenChain IV-106
editField 1-408 ffAscent IV-36 frPutAway IV-106
editOpen 1-408 ffAssoc IV-37 frRect IV-105
ejectCode 11-214 ftDescent IV-36 frScroll IV-106
emptyCmd V-482 ffFamID IV-36 &Unused IV-106
enableFlags 1-345 ftFustChar IV-36 frView IV-105
endMarker V-230 ffFlags IV-36 fsAtMark II-93
env512KE V-7 fflnd IV-37 fsCurPerm 11-100
env68000 V-7 ffXernOff IV-36 FSFCBLen IV-97
env68010 V-7 ffKemTab IV-37 fsFromLEOF 11-93
env68020 V-7 ftLastChar IV-36 fsFromMark 11-93
envAExtendKbd V-7 faF.ading IV-36 fsFromStart 11-93
envCPUUnknown V-7 . flMode 11-225 fSize IV-41
environsVersion V-6 ffProperty IV-37 fsQType 11-373
envMac V-7 fFromUsr 11-151 fsRdPenn 11-100
envMacAndPad V-7 ffStylOff IV-37 fsRdWrPerm 11-100
envMachUnknown V-7 ffStyTab IV-37 fsRdWrSHPenn IV-120
envMacII V-7 ffVersion IV-37 fsWrPerm 11-100
envMacKbd V-7 flWidMax IV-36 ftMode 11-225
envMacPlus V-7 ffwidthTab IV-37

Index II: Constants and Field Names 51


Inside Macintosh X-Ref

frrash 11-85, IV-105 highHook 1-377 inGrow 1-287


frype 1-519, 1-527 hilite V-62 initChanO V-486
fxdFntH IV-35 hilited 1-276 initChan 1 V-486
fxdFntHW IV-35 hitDev V-331 initChan2 V-486
fxdFntW IV-35 hMenu V-230 initChan3 V-486
hotSpot 1-146 initChanLeft V-486
G hour 11-378 initChanRight V-486
hOutput IV-41 initCmd V-482
gdCCBytes V-119 howOftenCmd V-482 initCnd 1-329
gdCCDepth V-119 hPic 11-161 initDev V-331
gdCCXData V-119 hPrint 11-161 initMono V-486
gdCCXMask V-119 hPrint V-414 InitPRAMRecs V-438
gdCompProc V-119 hRes V-53 InitSDeclMgr V-438
gdFlags V-119 hScroll IV-263 initSRate22k V-486
gdID V-119 HSL2RGB V-174 initSRate44k V-486
gdlTable V-119 hState V-482 InitsRsrcTable V-438
gdMode V-119 HSV2RGB V-174 initStereo V-486
gdNextGD V-119 hText 1-377 inMenuBar 1-287
gdPMap V-119 hwOverrunErr Il-252 inNumer IV-41
gdRect V-119 inPageDown 1-316
gdRefCon V-119 inPageUp 1-316
gdRetNum V-119 inPon 1-377
gdReserved V-119 iBandH Il-152 installed 11-215
gdResPref V-119 iBandV Il-152 inSysWindow 1-287
gdSearchProc V-119 iBeamCursor 1-474 intlOVers 1-497
gdType V-119 iconBMap V-65 inThumb 1-316
geneva 1-219 iconData V-65 indl Vers 1-500
getCancel 1-526 iconMask V-65 intUtil 1-483
GetColor V-174 iconMaskData V-65 intUtil IV-67
getDlglD 1-525 iconPMap V-65 inUpButton 1-316
getDrive 1-526 iCopies 11-151 inVBL Il-350
getEject 1-526 iCurBand Il-161 inZoomIN IV-49
getNmList 1-526 iCmCopy 11-161 inZoomOut IV-49
getOpen 1-526 iCurPage 11-161 ioCmdAddr 11-98
getPicProc 1-197 iDev Il-149 ioCompletion 11-98
getScroll 1-526 iDevBytes 11-152 ioNamePtr Il-98
getSelMsg IV-217 iError V-410 iOpCode V-410
goAwayFlag 1-276, 423, iFileVol Il-151 ioQType 11-373
V-199 iFstPage Il-151 ioResult 11-98
good 1-519, 527 iHandled V-339 ioTrap 11-98
goodBye Il-189 iHideCounts V-339 ioVRetNum Il-98
gPon 11-147 iHRes 11-149 iPFMaxPgs 11-152
grafProcs 1-148 ilgnored V-339 iPrAbon 11-161
grafVars V-50 iIOAbon 11-161 iPrBitsCd 11-163, V-409
green V-72 iLstPage 11-151 iPrDevCd 11-163, V-410
greenColor 1-158 iMax V-411 iPrDrvrRef 11-162
gzProc 11-22 iMemFullErr 11-161 iPrEvtCd V-410
iMin V-411 iPrlOCd Il-163, V-409
H inButton 1-316 iPrSavPFil 11-161
inCheckBox 1-316 iPrVersion Il-149
hasColoIQD V-6 inContent 1-287
hasFPU V-6 iRgtype V-412
inDenom IV-41 iRowBits 11-152
hAxisOnly 1-295, 1-325 indent IV-263
heapData Il-22 iRslRecCnt V-412
inDesk 1-287 iShowCounts V-339
helvetica 1-219 inDownButton 1-316
hFactor IV-41 iTabRes V-139
inDrag 1-287 iTabSeed V-139
hFstFree Il-22 inGoAway 1-287

52 Index II: Constants and Field Names


Index II: Constants and Field Names

italic 1-227 ICloseMsg IV-277 IPrPageClose V-410


italicBit 1-152 IDelColumn IV-270 IPrPageEnd 11-163, V-410
items 1-408 IDelRow IV-270 IPrPageOpen V-410
itemsID 1-423, 424 !Dispose IV-270 IPrReset 11-163, V-410
iTitle V-339 IDoDraw IV-270 IReserved IV-263, V-410
iTitleHandled V-339 lDoHAutoScroll IV-265 IScreenBits Il-164, V-409
iTitlelgnored V-339 lDoVautoScroll IV-265 !Scroll IV-275
iTotBands 11-161 IDraw IV-270 ISize IV-274
iTotCopies Il-161 IDrawMsg IV-2n !Update IV-275
iTotPages Il-161 leading 1-173 lUseSense IV-267
iITable V-139 lExtendDrag IV-267
iuDatePString 1-504 IFind IV-270 M
iuDateString 1-504 IGetCell IV-270
iuGetlntl 1-504 IGetSelect IV-270 macDev V-331
iuMagIDString 1-504 lhAscent V-261 machineType V-6
iuMagString 1-504 lhHeight V-261 macMachine Il-385
iuMetric 1-504 IHiliteMsg IV-277 macXLMachine Il-385
iuSetlntl 1-504 IHiPaintBits V-409 magentaColor 1-158
iuTimePString 1-504 lHiScreenBits V409 mapChanged 1-126
iuTimeString 1-504 lhTAb V-261 mapCompact 1-126
iVersion V-339 limitRect 1-332 mapFalse IV-19
iVRes Il-149 lineHeight 1-377 mapReadErr IV-18
iXRsl V-411, 414 lineProc 1-197 mapReadOnly 1-126
iYRsl V-411, 414 lineStarts 1-377 mapTrue IV-19
llnitMsg IV-277 made 1-146, V-83
J, K listDefProc IV-263 matchData V-72
listFlags IV-263 maxindex IV-264
just 1-377 listMgr IV-67 maxNRel 11-22
kbdPrint 11-370 listSep 1-497 maxRel 11-22
kemMax 1-231 lkUp Il-320 mbResld V-228
keyBoardtype V-6 lkUpReply Il-320 mbResID V-230
keyCodeMask 1-250 ILastClick IV-270 mChooseMsg 1-362
keyDown 1-249 lngDateFmt 1-500 mctlD V-231
keyDownMask 1-254 INoDisjoint IV-267 mctltem V-231
keyEvtDev V-331 INoExtend IV;.267 mctReserved V-232
keyUp 1-249 INoNilHilite IV-267 mctRGBl V-231
keyUpMask 1-254 INoRect IV-267 mctRGB2 V-232
killCode Il-194 localRm 1-500 mctRGB3 V-232
locTable 1-231 mctRGB4 V-232
L london 1-219 mDownMa.U 1-254
longDay V-290 mDmwMsg 1-362
IActivate IV-269 mdy 1-498
IActive IV-263 longDDP 11-306
longMonth V-290 memFullErr 11-30
IAddColumn IV-269 memLockedEtr Il-44
IAddRow IV-269 longWeek V-290
longYear V-290 memPurErr 11-22
IAddToCell IV-269 memWZErr 11-33
lapDstAdr Il-306 IOnlyOne IV-267
losAngeles 1-219 menu V-230
lapHdSz 11-306 menuData 1-345
lapSize 11-274 IPaintBits 11-164
IPaintBits V-409 menuHeight 1-345
lapSicAdr 11-306 menuHOH V-229
lapType Il-306 IPrDocClose V-41 O
IPrDocOpen V-410 menuID 1-345
lastChar 1-231 menuLeft V-229
lastClick IV-263 IPrEvtAll V-410
IPrEvtTop V-410 menuOH V-229
lastHMenu V-228 menuPrgErr V-572
lastMenu V-228 IPrLFSixth 11-163
IPrLFStd V-410 menuProc 1-345
lastRight V-228 menuTitleSave V-229
IClikLoop IV-263 IPrLineFeed Il-163, V-410
menuWidth 1-345

Index II: Constants and Field Names 53


Inside MacintoshX-Ref

message 1-249 nLines 1-377 patlData V-55


metricSys 1-497 noConstraint 1-295, 325 patMap V-55
midiDataCm,.. V-483 noErr 1-116 patOr 1-157
MidilnitChan V-497 NoErr V-411 patStretch 1-148
MidilnitChanFilter V-497 noGrowDocProc 1-273 patType V-55
MidilnitRawMode V-497 noMark 1-359 patXData V-55
MIDISynthln V-478 noParity 11-251 patXMap V-55
MIDISynthOut V-478 noScrapErr 1-459 patXor 1-157
minCBFree 11-22 NoSuchRsl V-411 patXValid V-55
minute 11-378 noteCmd V-482 pauseCmd V-482
misc 11-370 notelcon 1-420 pFileName 11-151
mntLdingZ 1-498 noteSynth V-478 phaseCmd V-483
mode 11-225 notPatBic 1-157 pHiliteBit V-62
modifiers 1-249 notPatCopy 1-157 picFrame 1-159
monaco 1-219 notPatOr 1-157 picLParen 1-159
month 11-378 notPatXor 1-157 picRParen 1-159
months 1-500 notSrcBic 1-157 picSave 1-148
moreMast 11-22 notSrcCopy 1-157 picSize 1-159
momStr 1-497 notSrcOr 1-157 pldleProc 11-151
mouseDown 1-249 notSrcXor 1-157 pixelSize V-53
mouseLoc IV-263 nRuns V-261 pixelType V-53
MouseUp 1-249 nStyles V-261 plainDBox 1-273
msgHandled V-339 ntEntity 11-321 planeBytes V-53
msglgnored V-339 ntLink 11-321 plusCursor 1-474
mSizeMsg 1-362 ntSocket 11-321 pmAnimated V-154
mUpMask 1-254 ntTuple 11-321 pmBkColor V-67
MYD V-290 nulDev V-331 pmBklndex V-67
mySocket 11-302 nullCmd V-482 pmCourteous V-154
nullEvent 1-249 pmDataFields V-159
N nullScrap V-264 pmDithered V-154
nullStyle V-261 pmEntries V-159
nbp 11-320 numEntries V-234 pmExplicit V-154
nbpConttol 11-320 nwner 1-224 pmFgColor V-67
nbpID 11-320 nwnToString 1-489 pmFglndex V-67
nbpSize 11-274 pmFlags V-67
nbpTCount 11-320 0 pmlnfo V-159
nbpTuple 11-320 pmReserved V-53
nDescent 1-231 objStt 11-298 pmTable V-53
needBits 1-224 oddParity Il-251 pmTolerant V-154
needsFlush 11-215 ok 1-407 pmVersion V-53
negZcbFreeErr V-572 opcodeProc V-91 pnLoc 1-148
networkEvt 1-249 OpNotlmpl V-411 pnLoc V-50
networlcMask 1-254 optionKey 1-253 pnLocHFrac V-50
newProcl V-91 outlineBit 1-152 pnMode 1-148
newProc2 V-91 ovalProct 1-197 pnMode V-50
newProc3 V-91 owTable 1-231 pnPat 1-148
newProc4 V-91 ow1Loc 1-231 pnPixPat V-50
newProc5 V-91 pnSize 1-148
newProc6 V-91 p pnSize V-50
newSelMsg IV-217 pnVis 1-148, V-50
newYork 1-219 packSize V-53
polyBBox 1-159
nextChan V-481 packType V-53
parityErr II-252 polyPoints 1-159
nextConttol 1-317 polyProc 1-197
nextStub V-482 pasteDev V-331
patBic 1-157 polySave 1-148
nextWindow 1-276, V-199 polySize 1-159
nilHandleErr 11-33 patCopy 1-157
patData V-55 port 1-276, IV-263
nis 11-321

54 Index II: Constants and Field Names


Index II: Constants and Field Names

portA 11-370 qTail 11-372, V-481 s


portB 11-370 qType II-71, 215
portBits 1-148 queue V-481 sampledSynth V-478
portPixMap V-50 quietCmd V-482 sanFran 1-219
portRect 1-148, V-50 sBSR . IV-253
portVersion V-50 R scAdd IV-287
posCnd 1-329 SCalcsPointer V-438
pPrPort II-161 radioButProc 1-315 SCalcStep V-438
PrClose V-409 rateCmd V-483 SCardChanged V-438
PrCloseDoc V-409 rDocProc 1-273 scComp IV-287
PrClosePage V-409 rdVerify II-101, IV-121 sCDR IV-253
PrCdCall V-409 recalBack 1-377 seine IV-287
PrDrvClose V-409 reca11 ines 1-377 SCkCardStatus V-438
PrDrvrDCE V-409 rectProc 1-197 scLoop IV-287
PrDMOpen V-409 red V-71 scMove IV-287
PrDrvrVers V-409 redColor 1-158 scNolnc IV-287
PrError V -409 refCon 1-276, 423, IV-263 scNOp IV-287
prlnfo Il-149 reqLData V-144 scrapCount 1-457
prinfoPr 11-149 reqLsize V-144 scrapHandle 1-457
PrintDefault V-409 requestNextCmd V-482 scrapName 1-457
printX Il-149 resAttrErr IV-18 scrapSi7.e 1-457
prJob II-149 resChanged 1-111 scrapState 1-457
PrJobDialog V-409 reserved V-229 ScriptUtil V-316
PrJobMerge V-4()C) resFNotFound 1-116 scrollBarProc 1-315
processor V-6 resLocked 1-111 scrpAscent V-266
proclD 1-423 resNotFound 1-116 scrpColor V-266
PIOpen V-409 resPreload 1-111 scrpFace V-266
PIOpenDoc V-409 resProtected 1-111 scrpFont V-266
PIOpenPage V-409 · resPurgeable 1-111 scrpNStyles V-265
propFont 1-232, IV-35 resSysHeap 1-111 scrpSize V-266
prpFntH IV-35 restCmd V-482 scrpStartChar V-266
prpFntHW IV-35 resumeCmd V-482 scrpStyleTab V-265
prpFntW IV-35 rgb V-136 scsiCmd IV-289
PrPicFile V-409 RGB2CMY V-174 scsiComplete IV-289
PrSetError V-40CJ RGB2HSL V-174 scsiGet IV-289
prSd Il-149 RGB2HSV V-174 scsiMsgln V-575
PrStlDialog V-409 rgbBkColor V-50 scsiMsgOut V-575
PrValidate V-409 rgbFgColor V-50 scsiRBlind IV-289
prXInfo II-149 rgbHiliteColor V-67 scsiRd IV-252
purgeProc 11-22 rgbOpColor V-67 scsiRead IV-289
purgePtr 11-22 rgnProc 1-197 scsiReset IV-289
pushButProc 1-315 rgnSave 1-148 scsiSelAtn V-575
putCancel 1-522, 522 rgRslRec V-412 scsiSelect IV-289
putDlglD 1-521, 527 rmvResFailed 1-116 scsiStat IV-289
putDrive 1-522 rowBytes V-52 scsiWBlind IV-289
putEject 1-522 rowWords 1-231 scsiWr IV-252
putName 1-522 rPage 11-149 scsiWrite IV-289
putPicProc 1-197 rPaper 11-149 sCSR IV-253
putSave 1-522 rRectProc 1-197 scStop IV-287
putSave 1-522 rTCClk III-37 sDDPDstSkt 11-310
rTCData III-37 sDDPSrcSkt II-310
Q rTCEnb III-37 sDDPType Il-310
runs V-261 SdeleteSRTRec V-438
qFlags 11-372 rView IV-263 sdlnstall V-587
qHead 11-372, V-481 sDMAtx IV-253
qLength V-481 sdOnDrivers V-588
qLink 11-71, 215 sdOnPower V-588

Index II: Constants and Field Names 55


Inside MacintoshX-Ref

sdOnRestart V-588 smCharLeft V-307 smScriptRight V-312


sdOnUnmount V-588 smCharLower V-307 smScriptRsvdl V-312
sdOSType V-354 smCharPunct V-307 smScriptRsvd2 V-312
sdPowerOff V-587 smCharRight V-307 smScriptRsvd3 V-312
sdRemove V-587 smCharUpper V-307 smScriptRsvd4 V-312
sdReserve.d V-354 smChinese V-297 smScriptSort V-312
sdRestart V-587 smDevanagari V-297 smScriptSysFond V-312
sdRestartOrPower V-588 smEnable.d V-313 smScriptTrap V-312
sdSlot V-354 smfontForce V-313 smScriptVersion V-312
sdSResource V-354 smForced V-313 smSindhi V-298
second Il-378 smGeorgian V-298 smSinhalese V-297
selectMsg IV-217 smGreek V-297 smSlavic V-298
selEnd 1-377 smGujarati V-297 smSysRef V-313
selFlags IV-263 smGunnukhi V-297 smSysScript V-313
selPoint 1-377 smHebrew V-297 smTamil V-297
selRect 1-377 smHilite V-308 smTelugu V-297
. selStart 1-377 smlntlForce V-313 smThai V-298
sendChk ll-314 smKanji V-297 smTibetan V-298
SExec V-438 smKannada V-297 smTransAscii V-311
sExtta IV-41 smKeyCache V-313 smTransCase V-311
sfGetFile 1-519 smKeyScript V-313 smTransLower V-311
SFindDevBase V-438 smKeySwap V-313 smTransNative V-311
SFindslnfoRecPtr V-438 smKhmer V-298 smTransUpper V-311
SFindsRsrcPtr V-438 smKorean V-297 smUninterp V-298
SFindStruct V-438 smLaotian V-298 smVersion V-313
sfPGetFile 1-519 smLeftCaret V-308 smVietnamese V-298
sfPPutFile 1-519 smMalayalam V-297 SNextRsrc V-438
sfPutFile 1-519 smMaldivian V-298 SNextTypesRsrc V-438
SGetBlock V-438 smMaskAll V-311 snScriptRsvdS V-312
SGetCString V-438 smMaskAscii V-311 sOCR IV-253
SGetDriver V-438 smMaskNative V-311 SOffsetData V-438
shadow 1-227 smMongolian V-298 soundl 1-424
shadowBit 1-152 smMunge.d V-313 soundlPhase Il-227
shiftKey 1-253 smOriya V-297 soundlRate Il-227
shortDDP Il-306 smPrint V-313 soundl\Vave ll-227
shrtDateFmt 1-497 smPunctBlank V-307 sound2 1-424
sICR IV-253 smPunctNonnal V-307 sound2Phase Il-227
siDataAreaAddr V-370 smPunctNumber V-307 sound2Rate Il-227
sides 11-215 smPunctSymbol V-307 sound2\Vave ll-227
slDMArx IV-253 sMR IV-253 sound3 1-424
slDR IV-253 smReserve.dl V-297 sound3Phase Il-227
siServiceRtPlr V-370 smRightCaret V-308 sound3Rate 11-227
size 1-224 smRoman V-297 sound.3\Vave Il-227
slopRect 1-332 smRussian V-297 sound4 1-424
Smal1FractFix2 V-174 smScriptCreator V-312 sound4Phase 11-227
smAmharic V-298 smScriplDate V-312 sound4Rate Il-227
smAppScript V-313 smScriptEnable.d V-312 sound4\Vave ll-227
smArabic V-297 smScriptfile V-312 soundCmd V-483
smAnnenian V-298 smScriptlcon V-312 spareFlag 1-276, V-199
smBengali V-297 smScriptJust V-312 sparePtr 11-22
smBiDirect V-313 smScriptKeys V-312 spExtta 1-148, V-50
smBunnese V-298 smScriptMunged V-312 sPrDrvr 11-162
smCharlbyte V-307 smScriptName V-313 SPrimarylnit V-438
smChar2byte V-307 smScriptNumber V-312 SPtrToSlot V-438
smCharAscii V-307 smScriptPrint V-312 SPutPRAMRec V-438
smCharEuro V-307 slnScriptRedraw V-312 SQAddr V-426

56 Index II: Constants and Field Names


Index II: Constants and Field Names

SQLink V-426 swOverrunErr Il-254 trFunct IV-67


SQParm V-426 symbol 1-219 triplets 11-225
SQPrio V-426 syncCmd V-482 true32b V-592
SQType V-426 systemFont 1-219 tsColor V-265
srcBic 1-157 systemVersion V-6 tsFace V-265
srcCopy 1-157 sysVRefNum V-6 tsFont V-265
srcOr 1-157 tsSize V-265
srcXor 1-157 T tupleEnum 11-320
SReadByte V-438 tupleMax Il-320
SReadDrvrName V-438 tabData IV-41 tupleName 11-320
SReadFHeader V-438 tabFont IV-41 tupleNet Il-320
SReadlnfo V-438 tabSize IV-41 tupleNode Il-320
SReadLong V-438 taliesin 1-219 tupleSkt 11-320
SReadPBSize V-438 TEaddSize V-281 twoSideFmt 11-215
SReadPRAMRec V-438 1EdoAll V-281 txFace 1-148, 377, V-50
SReadStruct V-438 TEdoColor V-281 txFont 1-148, 377, V-50
SReadWont V-438 TEdoFace V-281 txMeasProc 1-197
sRESET IV-253 TEdoFont V-281 txMode 1-148, 377, V-50
SRsrclnfo V-438 TEdoSize V-281 txSize 1-148, 377, V-50
SSearchSRt V-438 teJustCenter 1-377 tyBkFree Il-24
sSER IV-253 teJustLeft 1-377 tyBkNReal 11-24
stO 1-500 teJustRight 1-377 tyBkRel 11-24
stl 1-500 teLength 1-377 typeStr 11-298
st2 1-500 teRefCon V-261
st3 1-500 TEReserved V-264
terminateMsg IV-218
u
st4 1-500
stages 1-424 testCntl 1-329 ulineBit 1-152
star Il-320 textH 1-408 ulOffset 1-227
stAscent V-262 textMenuProc 1-362 ulShadow 1-227
stColor V-262 textProc 1-197 ulThick 1-227
stCount V-262 tgBuffCode 11-214 undoDev V-331
sTCR IV-253 thousSep 1-497 UnimplCoreRoutine V-316
stdFile 1-483, IV-67 thumbCntl 1-329 unused 1-227
sTDMA IV-253 tickleCmd V-482 updateDev V-331
stdState IV-49 tidValid 11-314 updateEvt 1-249
stFace V-262 timbreCmd V-483 updateMask 1-254
stFont V-262 timelSuff 1-497 updateRgn V-199
stHeight V-262 time2Suff 1-497 updatRgn 1-276
stoplO Il-251 time3Suff 1-497 useAsync 11-305
stopl5 11-251 time4Suff 1-497 useATalk 11-305
stop20 11-251 time5Suff 1-497 usedFam IV-41
stoplcon 1-420 time6Suff 1-497 useFree Il-305
stringToNum 1-489 time7Suff 1-497 userBytes Il-288
strucRgn 1-276, V-199 time8Suff 1-497 userHandle IV-264
stSize V-262 timeCycle 1-497 userlnfo V-481, 482
style IV-41 timeFmt 1-497 userState IV-49
styleTab V-261 times 1-219 use'\VFont 1-315
subOver V-61 timeSep 1-497
subPin V-61 title 1-423 v
SUpdateSRT V-438 titleHandle 1-276, V-199
titleWidth 1-276, V-199 valid 11-370
supDay V-291 value V-136
supMonth V-291 unAddr IV-299
tmCount IV-299 vAxisOnly 1-295, 325
suppressDay 1-500 vblAddr 11-350
supWeek V-291 toronto 1-219
ttack Il-215 vblCount 11-350
supYear V-291 vblPhase Il-350
swMode Il-225 transparent V-61
trFunc 1-483

Index II: Constants and Field Names 57


Inside Macintosh X-Ref

vcbAIBlkSiz II-125, verAustralia 1-499 wCReserved V-202


IV-176 verBelgiumLux 1-499 wCSeed V-202
vcbAIBlst II-125 verBritain 1-499 wDev 11-152
vcbAllocPtr IV-176 veICyprus 1-499 wDispose 1-299
vcbAtrb 11-125 verDenmark 1-499 wDraw 1-299
vcbBufAdr 11-125 verFinland 1-499 wDrawGlcon 1-299
vcbBufAdr IV-176 verFrance 1-499 wFrameColor V-204
vcbClpSiz 11-125 verFrCanada 1-499 wGrow 1-299
vcbClpSiz IV-176 verFrSwiss 1-499 what 1-249
vcbCrDate 11-125 verGennany 1-499 when 1-249
vcbCI'AIBks IV-177 verGreece 1-499 where 1-249
vcbCI'ClpSiz IV-176 verGrSwiss 1-499 wHiliteColor V-204
vcbCtlBuf IV-177 verlceland 1-499 wHit 1-299
vcbCdCSiz IV-177 verlsrael 1-499 whiteColor 1-158
vcbCTRef IV-177 verltaly 1-499 widMax 1-173
vcbDirBlk 11-125, IV-176 verJapan 1-499 wlnContent 1-300
vcbDirCnt IV-176 verMalta 1-499 window 1-408
vcbDirIDM IV-177 verNetherlands 1-499 windowDefProc 1-276,
vcbDirlndex 11-125, IV-176 verNorway 1-499 V-199
vcbDirSt II-125 verPortugal 1-499 windowKind 1-276, V-199
vcbDRefNum II-125, version 1-519, 1-527 windowPic 1-276, V-199
IV-176 versNum 11-58 wlnDrag 1-300
vcbDrvNum 11-125, IV-176 verSpain 1-499 wlnGoAway 1-300
vcbFilCnt IV-176 verSweden 1-499 wlnGrow 1-300
vcbFLags 11-125 verTurkey 1-499 wlnZoomln IV-50
vcbFndrlnfo IV-177 verUS 1-499 wlnZoomOut IV-50
vcbFreeBks II-125, IV-176 verYugoslavia 1-499 wNew 1-299
vcbFSID Il-125, IV-176 vFactor IV-41 wNoHit 1-299
vcblLn 11-125 viewRect 1-377 wordBreak 1-377
vcbLsBkUp 11-125 visible 1-276, 423, writeProt II-215
vcbLsMod IV-176 IV-263, V-199 wTabHandle IV-32
vcbMAdr Il-125, IV-176 visRgn 1-148, V-50 wTextColor V-204
vcbMLen 11-125, IV-176 volClik 11-370 wTideBarColor V-204
vcbNmAIBlks IV-176 vOutput IV-41
vcbNmBlks 11-125 vPage2 ill-20 X, Y,Z
vcbNmFls 11-125 vRefNum 1-519, 1-527
vcbNmRtDirs IV-176 vrefNum 11-58 xOftWasSent 11-254
vcbNxtCNID IV-176 vRes V-53 xppTfRNum V-531
vcbNxtFNum 11-125 vScroll IV-263 xppUnitNum V-531
vcbOffsM IV-177 vSndEnb III-21 XRslRg V-412
vcbSigWord Il-125 vSndPg2 III-21 YDM V-290
vcbVBMCSiz IV-177 vSound III-21 year 11-378
vcbVBMSt IV-176 vSW III-27 yellowColor 1-158
vcbVCSize IV-177 vType 11-373 ymd 1-498
vcbVN 11-125, IV-176 vTypErr 11-351 YRslRg V-412
vcbVolBkUp IV-176 zcbFree 11-22
vcbVRefNum 11-125, w zeroCycle V-290
zoneSize 11-45
IV-176
vcbVSeqNum IV-176 wait V-481 zoneStr- 11-298
vcbWrCnt IV-176 waitCmd V-482
vcbXTAIBks IV-177 wakeUpCmd V-482
vcbXTClpSiz IV-176 watchCursor 1-474
vcbXTRef IV-177 waveBytes 11-228
vcvbAIBISt IV-176 waveTableCmd V-483
venice 1-219 waveTableSynth V-478
verArabia 1-499 wCalcRgns 1-299
wContentColor V-204

58 Index/I: Constants and Field Names


APPENDIX A: ROUTINES THAT MAY MOVE OR
PURGE MEMORY

111is appendix lists all the routines that may move or purge blocks in the heap. As described in
Inside Macintosh, Volume II, chapter l, calling these routines may cause problems if a handle has
been dereferenced. None of these routines may be called from within an interrupt, such as in a
completion routine or a VBL task.
The Pascal name of each routine is shown, except for a few cases where there's no Pascal interface
corresponding to a particular trap; in those cases, the trap macro name is shown instead (without its
initial underscore character).

ActivatePalette CloseCPort DisposCTable


ADBRelnit CloseDialog DisposDialog
AddComp ClosePicture DisposeControl
AddResMenu ClosePoly DisposeMenu
AddSearch OosePort DisposePalette
Alert OoseResFtle DisposeRgn
AllocCrsr OoseRgn DisposeWindow
AppendMenu CloseWindow DisposGDevice
ATPAddRsp CMY2RGB DisposHandle
A TPOoseSocket ColoI2Index DisposPixMap
ATPGetRequest CompactMem DisposPixPat
ATPLoad Conttol DisposPtr
ATPOpenSocket CopyBits DIUnload
ATPReqCancel CopyMask DIVerify
ATPRequest CopyPalette DIZ.ero
ATPResponse CopyRgn DlgCopy
ATPRspCancel CouldAlert DlgCut
ATPSndRequest CouldDialog DlgDelete
ATPSndRsp CreateResFtle DlgPaste
ATPUnload CStI2Dec DragControl
BackColor CTab2Palette DragGrayRgn
BackPat DDPCloseSocket DragWindow
BackPixPat DDPOpenSocket Drawl Control
BeginUpdate DDPRdCancel DrawChar
BringToFront DDPRead DrawDialog
Button DDPWrite DrawGrowlcon
CalcMenuSim Dec2Stt DrawJust
CaleVis DelComp DrawMenuBar
CalcVisBehind DelMenultcm DrawNew
CautionAlert DelSeateh DrawPicture
Clain DialogSelect DrawString
ChangedResource DIBadMount DrawText
Char2Pixel DifiRgn DriveStatus
CharWidth DIFonnat DJVrlnstall
Oleckitem DILoad DIVrRemove
CheckUpdate DiskEject Eject
QipAbove DispMCinfo EmptyHandle
QipRect DisposCicon EndUpdate

Routines That May Move or Purge Memory 59


Inside MacintoshX-Ref

EraseArc GetDCtlEntiy InitPalettes


EraseOval GetDitem InitPort
ErasePalette GetFNum InitPort
ErasePoly GetFontlnfo InitPRAMRecs
EraseRect GetFontName lnitProcMenu
EraseRgn GetGrayRgn InitResources
EraseRoundRect Getlcon InitSDeclMgr
EventAvail GetlndPattem InitsRsrcTable
ExitToShell GetlndResource InitWindows
FillAre GetlndString InitZ.one
FlllCArc GetKeys lnsertMenu
FillCOval GetMCinfo InsertResMenu
FillCPoly GetMenu InsetRgn
FillCRect GetMenuBar InsMenultem
FillCRgn GetMouse IntlScript
FillCRoundRect GetNamed.Resource lnvalRect
FillOval GetNewControl InvalRgn
FtllPoly GetNewCWindow lnvertArc
FillRect GetNewDialog lnvertOval
FtllRgn GetNewMBar lnvertPoly
FillRoundRect GetNewPalette lnvertR.ect
FindControl GetNewWindow lnvertRgn
FmdDitem GetNextEvent lnvertRoundRect
FindWord GetPattem IUCompString
Fix2Smal1Fract GetPicture IUDatePString
FlashMenuBar GetPixPat IUDateString
FlushVol GetResource IUF.qualString
FMSwapFont GetScrap IUGetlntl
Font2Script GetString IUMagIDSbing
FontMetrics GetStylHandle IUMagString
FontScript GetStylScrap IUMetric
ForeColor GetSubTable IUSetlnd
FrameArc GrowWindow IUTimePString
FrameOval HandAndHand IUTimeString
FramePoly HandToHand KeyScript
FrameRect HideConttol KillControls
FrameRgn HideDitem KillPicture
FrameRound.Rect HideWindow KillPoly
FreeAlert HiliteControl LAPOoseProtocol
FreeDialog HiliteMenu LAPOpenProtocol
FreeMem HiliteText LAPRdCancel
GetllndResource HiliteWindow LAPRead
GetllndType HSL2RGB LAPWrite
GetlNamedResource HSV2RGB Launch
GetlResource InitAllPacks Line
GetAuxQl InitApplZDne LineTo
GetCCursor InitCPort Load.Resource
GetCicon InitFonts LoadScrap
GetClip InitGDevice LoadSeg
GetColor InitGraf Makefrable
GetCTable InitMenus MapRgn
GetCursor InitPack MeasureJust

60 Routines That May Move or Purge Memory


Routines That May Move or Purge Memory

MeasureText PaintRgn RecoverHandle


MenuKey PaintRoundRect RectRgn
MenuSelect Palette2CTab ReleaseResouice
Moda1Dialog ParamText ResrvMem
MoreMuters PBControl Restart
MoveControl PBEject RGB2CMY
MoveHHi PBFlushVol RGB2HSL
MoveWindow PBMountVol RGB2HSV
MPPaose PBOffLine RGBBackColor
MPPOpen PBOpen RGBForeColor
Munger PBOpenRF RGetResource
NBPConfinn PB Status RmveResource
NBPExtract PenNonnal Rsn:Zonelnit
NBPLoad PenPat SaveOld
NBPLookup PenPixPat ScrollRect
NBPRegister PicComment SectRgn
NBPRemove Pixel2Char SelectWindow
NBPUnload PlotCleon SellText
NewCDialog Plotlcon SendBehind
NewConttol PMBackColor SeJClrBik
NewCWindow P.MForeColor SerGetBrk
NewDialog PrClose SerHShake
NewEmptyHandle PrCloseDoc SerReset
NewGDevice PrClosePage SerSetBik
NewHandle PICtlCall SerSetBuf
NewMenu PrDrvrClose SerStatus
NewPalette PrDrvrDCE SetApplB~
NewPixMap PrDrvtOpen SetCCursor
NewPix.Pat PrDrvrVers SetClip
NewPort PrError SetCPixel
NewPtt PIGeneral SetCTitle
NewRgn PrintDefault SetCtlColor
NewString PrJobDialog SetCtlMax
NewWmdow PrJobMerge SetCtlMin
NoteAlert PIOpen SetCtlValue
NumToString Pn)penDoc SetDeskCPat
OpenCPicture PIOpenPage SetDitem
OpenCPort PrPicFile SetEmptyRgn
OpenDeskAcc PrSetError SetFontLock
OpenPicture PrStlDialog SetHandleSize
OpenPixMap PrValidate Setltem
OpenPoly PSb2Dec Setltemlcon
OpenPort PtrAndHand SetltemMalk
OpenResFlle Pb'I'oHand SetltemStyle
OpenRFPenn Pb'I'oXHand SetIText
OpenRgn PurgeMem SetMCinfo
PaintArc PutScrap SetPtrSii.e
PaintBehind RAMSDClose SetRectRgn
PaintOne RAMSDOpen SetReslnfo
PaintOval RealColor SetStting
PaintPoly RealFont SetStylHandle
PaintRect ReallocHandle SetTagBuffer

Routines That May Move or Purge Memory 61


Inside MacintoshX-Ref

SetWmColor TECut
SetWiide TEDeactivate
sExec 1EDelete
SFGetFile TEDispose
SFPGetFile TEFromScrap
SFPPutFile TEGetHeight
SFPutFile TEGetOffset
sGetBlock TEGetPoint
sGetcString TEGetStyle
sGetDriver TEGetrext
ShowControl TEidle
ShowDitem 1Elnit
ShowHide TElnsert
ShowWindow TEKey
ShutDwnlnstall TENew
ShutDwnRemove TEPaste
SizeControl TEPinScroll
Si7.CWmdow TEReplaceStyle
Smal1Fract2Fix TEScroll
SndAddModifier TESelView
SndDisposeChannel TESetJust
SndNewChannel TESetSelect
sPrimarylnit TESetStyle
StartSound TESetrext
Status TestControl
StdArc TEStyllnsert
StdBits TEStylNew
StdComment TEStyIPaste
StdLine TEToScrap
StdOval TEUpdate
StdPoly TextBox
StdPutPic TextWidth
StdRect TickCount
StdRgn TrackBox
StdRRect TrackControl
StdText TrackGoAway
StdTxMeas Transliterate
StillDown UnionRgn
StopAlert UnloadScrap
StopSound UnloadSeg
StringToNum UpdtControl
StringWidth UpdtDialog
SysBeep ValidRect
SysEnor ValidRgn
SystemClick WaitMouseUp
SystemEdit XorRgn
SystemMenu ZeroScrap
TEActivate ZoomWindow
TEAutoView
TECalText
TEQick
TECopy

62 Routines That May Move or Purge Memory


APPENDIX B: SYSTEM TRAPS

This appendix lists the trap macros for the Toolbox and Operating System routines and their
corresponding trap word values in hexadecimal. The "Name" column gives the trap macro name
(without its initial underscore character). In those cases where the name of the equivalent Pascal call
is different, the Pascal name appears indented under the main entry. The routines in Macintosh
packages are listed under the macros they invoke after pushing a routine selector onto the stack; the
routine selector follows the Pascal routine name in parentheses.

There are two tables. The first is ordered alphabetically by name; the second is ordered numerically
by trap number, for use when debugging. The trap number is the last two digits of the trap word
unless the trap word begins with A9, in which case the trap number is 1 followed by the last two
digits of the trap word, or AA, in which case the trap number is 2 followed by the last two digits of
the trap word.

Note: The Operating System Utility routines GetTrapAddress and SetTrapAddress take a trap
number as a parameter, not a trap word.

Warning: Traps that aren't currently used by the system are reserved for future use.

Name Trap word Name Trap word


ActivatePalette AA94 BitTst A8SD
ADBOp ACJlC BitXor A859
ADBRelnit ACJlB BlockMove AOlE
AddComp AA3B BringToFront A920
AddDrive A04E Button A974
(internal use only) CalcCMask AA4F
AddPt A87E CalcMask A838
AddResMenu A94D CalcMenuSize A948
AddResource A9AB CalcVBehind Af¥.JA
AddSearch AA3A CalcVisBehind
Alert A985 CaleVis ACX»
Allocate AOlO CautionAlcrt A988
PB Allocate Cbain A9F3
AllocCursor AAID ChangcdResource A9AA
AngleFromSlope A8C4 OiarExtra AA23
AnimateEnuy AN» CharWidth A88D
AnimatePalette AA9A Checkltem A945
AppendMenu A933 CheckUpdate A911
AttachVBL ACJll OearMenuBar A934
BackColor A863 OipAbove A90B
BackPat A87C OipRect A87B
BackPixPat AAOB Oose AOOl
BeginUpdate A'Jl2 PB Close
BitAnd A858 OoseCPort A87D
BitClr A85F CloseDeskAcc A9B7
BitNot ASSA CloseDialog A982
BitOr A85B ClosePgon A8CC
BitSet A85E OosePoly
BitShift A85C ClosePicture A8F4

System Traps 63
Inside Macintosh X-Ref

Name Ttap word Name Trap word


ClosePort A87D DisposDialog A983
CloseResFile A<»A DisposGDevice AA'!JJ
CloseRgn ASDB DisposHandle A023
CloseWindow NJ2D DisposMenu A932
CmpSbing A03C DisposeMenu
EqualSUing DisposePalette AA'J3
ColorBit A864 DisposPixMap A.ACM
ColoI2Index AA33 DisposPixPat AA08
CompactMem A04C DisposPtr AOIF
Control A004 DisposRgn ASOJ
PB Control DisposeRgn
CopyBits ASEC DisposWindow A914
CopyMask A817 DisposeWindow
CopyPixMap AAC/!J DoVBLTask ACT/2
CopyPixPat AA(1) DragControl A967
CopyRgn A8DC DragGrayRgn A905
CouldAlert A989 Drag'IbeRgn Am
CouldDialog A979 DragWindow A<n5
CountlResources A80D Drawl Control A96D
CountI Types ASIC DrawChar A883
CountADBs A<m DrawControls A9fl)
CountMitems A950 DrawDialog A981
CountR.esources N»C. DrawGrowlcon A904
CountTypes A9'JE DrawMenuBar A937
Create A008 DrawNew A90F
PB Create DrawPicture A8F6
CreateResFtle A9Bl DrawSbing A884
CTab2Palette AA9F DrawText A885
CurResFile A9')4 Divrinstall A03D
Date2Secs A9Cl (internal use only)
De1ay A03B DtvrR.emove A03E
DelComp AA4D (internal use only)
De1ete AOC1J Drlnstall A082
PBDelete Eject A017
DeleteMenu A936 PBEject
DelMCFntries AAOO Elems68K A9F£,
DelMenultem A952 EmptyHandle A02B
DelSeareh AA4C EmptyRect A8AE
DeltaPoint A94F EmptyRgn A8E2
Dequeue A96E Enableltem A939
DetachResource A9'J2 EndUpdate }923
DialogSelect A980 Enqueue A96F
DiftRgn A8E6 Equa1Pt A881
Disableltem A93A EqualRect A8A6
DispMCinfo AA63 EqualRgn A8E3
DisposCCursor AA2fl Erase.Are A80>
DisposCicon AA15 EraseOval A8B9
DisposControl A9SS ErasePoly A8C8
DisposeControl EraseRect A8A3
DisposCTable AA24 EraseRgn AS~

64 System Traps
System Traps

Name Trap word Name Trap word


EraseRowidRect A8B2 FreeAlert A98A
ErrorSound A98C FreeDialog ACJ7A
EventAvail ACJ71 FreeMem AOlC
ExitToShell A9F4 FrontWmdow A924
FtllArc A8Cl GetADBlnfo A079
FillCArc ·AAll GetAppPanns A9F5
FillCOval AAOF GetAuxOl AA44
FillCPoly AA13 GetAuxWm AA42
FtllCRect AAfE GetBackColor AAlA
FillCRgn AA12 GetCCursor AAlB
FtllCRowidRect AAlO GetCicon AAlE
FillOval A8BB GetClip A87A
FillPoly A8CA GetCPixel AA17
FillRect A8A5 GetCRefCon A95A
FtllRgn A8D6 GetCTable AA18
FillRoundRect A8B4 GetCTitle A9SE
FindControl A96C GetCtlAction A96A
Fmd.Dltem A984 GetOIValue A9<JO
FmdWindow >91.C GetCTSeed AA28
Fix2Frac A841 GetCursor A9B9
Fix2Long A840 GetCVariant ASOO
Fix2X A843 GetCWMgt'Port AA48
FtxAtan2 A818 GetDefaultStartup Af1lD
FtxDiv A84D GetDeviceList AA19
FixMUI A868 GetDitem A98D
FixRatio A869 GetEntryColor AA9B
FixRound A86C GetEntryUsage AA9D
FlasliMenuBar A94C GetEOF AOll
FlushEvents A032 PBGetEOF
FlushFtle A045 GetFllelnfo AOOC
PBFlushFile PBGetFinfo
flushVol A013 GetFName ASFF
PBAushVol GetFontName
FMSwapFont A901 GetFNum A900
FontMettics A835 GetFontlnfo A88B
ForeColor A862 GetForeColor AA19
FP68K A9EB GetFPos A018
Frac2Fix A842 PBGetFPos
Frac2X A845 GetGDevice AA32
FracCos A847 GetHandleSize ACJ25
FracDiv A84B Gedeon A9BB
FracMul A84A GetindADB A008
FracSin A848 GetlndResource A9'JD
FracSqrt A849 GetlndType A9'JF
FrameArc A8BE Getltem A946
FrameOval A8B7 GetltemCmd A84E
FramePoly A8C6 GetIText A900
FrameRect ASAI Getlbnlcon A93F
FrameRgn A8D2 Getltemlcon
FrameRoundRect A8BO

System Traps 65
Inside MacintoshX-Ref

Name Trap word Name Trap word


GetltmMarlc A943 GetSubTable AA37
GetltemMarlc GetTrapAddress A146
GetltmStyle A941 GetVideoDefault A080
GetltemStyle GetVol A014
GetKeys A976 PBGetVol
GetMainDevice AA'1A. GetVollnfo ACJJl
GetMaxCtl A962 PBGetVInfo
GetCtlMax GetWindowPie A92F
GetMaxDevice AA27 GetWMgrPort A910
GetMCEntry AA64 GetWRefCon A917
GetMClnfo AA61 GetWfitle A919
GetMenuBar A93B GetWVariant A80A
GetMHarxlle A949 GetZ.one AllA
GetMinCtl A961 GlobalToLocal A871
GetCtlMin GrafDevice A872
GetMouse A972 GrowWindow A92B
GetNamedResource A9Al HandAndHand A9E4
GetNewControl A9BE HandleZ.One Al26
GetNewCWindow AA46 HandToHand A9El
GetNewDialog A97C HClrRBit A068
GetNewMBar A9CO HFSDispatch A200
GetNewPalette ANJl OpenWD (1)
GetNewWindow A9BD CloseWD (2)
GetNextDevice AA2B CatMove (5)
GetNextEvent A970 DirCreate (6)
Getllx.Resource A80E GetWDinfo \/)
GetllndResource GetFCBinfo (8)
GetllxType A80F GetCatlnfo (9)
GetllndType SetCatlnfo (10)
GetlNamedResource A820 SetVollnfo (11)
Gett Resource A81F LockRng (16)
GetOSDefault A084 UnlockRng (17)
GetOSEvent A031 HGetState Afm
GetPalette AA96 HideControl A958
GetPattem A9B8 HideCursor A852
GetPen A89A HideDitem A827
GetPenState A898 HidePen A896
GetPicture A9BC HideWindow A916
GetPixel A865 HiliteColor AA'l2
GetPixPat AAOC HiliteControl A95D
GetPort A874 HiliteMenu A938
GetPtrSi7.e A021 HiliteWindow A91C
GetResAttrs A9A6 HiWonl A86A
GetResFtleAttrs A9F6 IIl.ock A029
GetReslnfo A9A8 HNoPurge A04A
GetResource A9AO HomeResFile A9A4
GetRMenu A9BF HPurge A049
GetMenu HSetRBit AOC>7
GetScrap A9FD HSetState AOC>A
GetString A9BA HUnlock A02A

66 System Traps
System Traps

Name Trap word Name Trap word


Index2Color AA34 LineTo A891
InfoScrap A9F9 LoadResource A9A2
InitAllPacks A9Ff> LoadSeg A9FU
InitApplZme AfJlC LocalToGlobal A870
InitCport AAOl LodeScrap A9FB
InitCwsor A850 LoadScrap
InitDialogs ACJ7B Long2Ftx A83F
InitFonts A8FE LongMul A867
InitGDevice AA2E LoWord A86B
InitGraf A86E Makeffable AA39
InitMenus A930 MakeRGBPat AAID
InitPack A9E.5 MapPoly ASFC
InitPalettes AAOO MapPt A8F9
InitPort A86D MapRect A8FA
InitProcMenu A808 MapRgn ASFB
InitQueue A016 MaxApplZone A063
FlnitQueue MaxBlock A061
InitResources A'»S MaxMem AllD
InitUtil A03F MaxSizeRsrc A821
InitWindows A912 MeasureText A837
InitZDne A019 MenuOtoice AA«>
InsertMenu A935 MenuKey A93E
InsertResMenu A951 MenuSelect A93D
lnsetRect A8A9 ModaIDialog A991
InsetRgn A8El MoreMasters A036
InsMenultem A826 MountVol AOOF
InternalWait ACJTF PBMountVol
Se<rimeout (0) Move A894
GetTuneout (1) MoveControl A959
InvalRect A928 MoveHHi A064
InvalRgn A927 MovePortTo AST/
InvelRect A8A4 MoveTo A893
InvertRect MoveWindow A91B
InverRgn ABOS Munger A9F.O
InvertRgn NewCDialog AA4B
InverRoundRect A8B3 NewControl A954
InvertRound.Rect NewCWindow AA45
InvertArc A8Cl NewDialog Af1ID
InvertColor AA35 NewEmptyHandle A066
InvertOval A8BA NewGDevice AA2F
InvertPoly A8C9 New Handle A122
lsDialogEvent ACJ7F NewMenu A931
KeyTrans A9C3 NewPalette AA91
Kill Controls A956 NewPixMap AAffi
KillIO A006 NewPixPat AAITT
PBKillIO NewPtr AllE
KillPicture A8F5 NewRgn A8D8
KillPoly A8CD NewString A906
Launch A9F2 NewWindow A913
Line A892 NoteAlert A987

System Traps 67
Inside MacintoshX-Ref

Name Trap word Name Trap word


ObscureCwsor A856 Paclc2 A9E9
Offline A035 DIBadMount (0)
PBOffline DIFonnat (6)
OffsetPoly A8CE Dll..oad (2)
OffsetRect A8A8 DIUnload (4)
OfsetRgn A8EO DIVerify (8)
OffsetRgn Diz.ero (10)
OpColor AA21 Pack3 A9EA
aim ACXX> SFGetFtle (2)
PBOpen SFPOetFile (4)
OpenCpott AAOO SFPPutFile (3)
OpenDeskAcc A9B6 SFPutFtle (1)
OpenPicture A8F3 Pack4 A9EB
OpenPoly A8CB Pack5 A90C
OpenPott A86F Pack6 A9ED
OpenResFtle A9'J'1 IUDatePString (14)
OpenRF AOOA IUDateString (0)
PBOpenRF IUGetlnd (6)
OpenRFPenn A9C4 IUMagIDString (12)
OpenRgn A8DA IUMagString (10)
OSEventAvail A030 IUMetric (4)
PackO A9E7 IUSetlnd (8)
LActivate (0) IUTimePString (16)
LAddColumn (4) IUiuneString (2)
LAddRow (8) Pack7 A9FE
LAddToCell (12) NumToString (0)
LAutoScroll . (16) String!oNum (1)
LCellSil.e (20) PStr2Dec (2)
Laick (24) Dec2Str (3)
LOrCell (28) CStr2Dec (4)
LDelColwnn (32) Pack8 A816
LDelRow (36) Pack9 A82B
LDispose (40) PacklO A82C
LDoDraw (44) Packll A82D
LDraw (48) (Pack 8-11 reserved for future use)
LFmd (52) Packl2 A82E
LGetCell (56) Fix2Smal1Fract (1)
LGetSelect (60) Smal1Fract2Fix (2)
LUmelick (64) CMY2RGB (3)
LNew (68) RGB2CMY (4)
LNextCell \/2) HSL2RGB (S)
IRect \/6) RGB2HSL (6)
LScroll (80) HSV2RGB \/)
LSearch (84) RGB2HSV (8)
LSetCell (88) GetColor (9)
~ect (92) Packl3 A82F
l.Si7.e (96) Packl4 A830
LUpdate (100) Packl5 A831
Packl A9E8 (Pack l:>-15 reserved for future use)
(reserved for future use) PackBits . A8CF

68 System Traps
System Traps

Name Trap word Name Trap word


PaintArc ASBF RectRgn ASDF
PaintBehind A90D ReleaseResoun:e A9A3
PaintOne A90C RelString AOSO
PaintOval A8B8 Rename AOOB
PaintPoly ASCJ PBRename
PaintRect A8A2 ResEnor A9AF
PaintRgn A8D3 ReserveEntty AA3E
PaintRoundRect A8Bl ResrvMem A040
Palette2CTab AAAO RestoreEntries AMA
ParamText A98B RGBBackColor AA15
PenMode A89C RGBForeColor AA14
PenNonnal A89E RGetResoun:e A80C
PenPat A89D RmveResoun:e A9AD
PenPixPat AAOA RsrcMapEntty A9C5
PenSize A89B RsJCZOnelnit A996
PicComment A8F2 RstFtlLock A042
PinRect A94E PBRstFLock
PlotCicon AAlF SaveEntries AA49
Plotlcon A94B SaveOld AfX)E
PmBackColor AA98 ScalePt A8F8
PmForeColor AA'J1 ScriptUtil A8B5
PopUpMenuSelect A80B smFontScript (0)
PortSize A876 smlntlScript (2)
PostEvent A02F smKybdScript (4)
PPostEvent A12F smFont2Script (6)
PtGlue A8fD smGetEnvirons (8)
Protect.Entty AA3D smSetEnvirons (10)
Pt2Rect A8AC smGetScript (12)
PtlnRect ASAD smSetScript (14)
PtlnRgn A8E8 smCharByte (16)
PtrAndHand A9EF smChaJ'I'ype (18)
PtI'l'oHand A9E3 smPixel2Char (20)
PtI'l'oXHand A9'F2 smChar2Pixel (22)
PtrZDne A148 smTranslit (24)
PtToAngle A8C3 smFmdWord (26)
PurgeMem A04D smHiliteText (28)
PurgeSpace A002 smDrawJust (30)
PutScrap A9FE smMeasureJust (32)
QDError AA40 ScrollRect A8EF
Random A861 SCSIDispatch A815
RDrvrlnstall A04F SCSIR.eset (0)
(internal use only) SCSIGet (1)
Read AOOl SCSISelect (2)
PBRead SCSICmd (3)
ReadDateTune ACJ39 SCSIComplete (4)
RealColor AA36 SCSIRead (5)
RealFont NXJ1. SCSIWrite (6)
ReallocHandle ACJ27 SCSIInstall (I)
RecoverHandle A128 SCSIRBlind (8)
RectlnRgn A8E9 SCSIWBlind (9)

System Traps 69
Inside MacintoshX-Ref

Name Trap word Name Trap word


SCSIStat (10) SetHandleSize A024
SCSISelAtn (11) Setltem A947
SCSIMsgln (12) SetltemQnd A84F
SCSIMsgOut (13) SetIText A98F
Secs2Date A9C.6 Setlbnlcon A940
SectRect A8AA. Setltemlcon
SectRgn A8FA SetlnnMark A944
SeedCFill AA!IJ SetltemMalk
SeedFtll A839 SetlbnStyle A942
SelectWindow A91F SetltemStyle
SelIText NnE SetMaxQl A965
SendBehind A921 SetCtlMax
SetADBlnfo AOOA SetMCEntries AA65
SetAppB~ A057 SetMCinfo AA62
SetApplBase SetMenuBar A93C
SetAppILimit A02D SetlvlFlash A94A
SetCCursor AAlC SetMenuFlash
SetClientID AA3C SetMinCtl A964
SetClip A879 SetCtlMin
SetCPixel AA16 SetOrigin A878
SetCPortPix AA<X> SetOSDefault A083
SetCRefCon A95B SetPalette AA95
SetCTitle A95F SetPBits A875
SetCtlAction A96B SetPortBits
SetCtlColor AA43 SetPenState A89'J
SetCtlValue A963 SetPort A873
SetCursor A851 SetPt A880
SetDateTime A03A SetPtrSize Af121J
SetDefaultStartup ACJTE SetRecRgn A8DE
SetDeskCPat AA47 SetRectRgn
SetDeviceAttribute AA1D SetRect A8A7
SetDitem A98E SetResAttrs A9A7
SetEmptyRgn A8DD SetResFtleAttrs A9F7
SetEntries AA3F SetReslnfo A9A9
SetEntryColor AA9C SetResLoad A9'JB
SetEntryUsage AA9E SetResPurge A9'J3
SetEOF A012 SetStdCProcs AA4E
PBSetEOF SetStdProcs A8EA
SetFtlelnfo AOOD SetString ACX1l
PBSetFinfo SetTrapAddress A047
SetFilLock A041 SetVideoDefault A081
PBSetFLock SetVol A015
SetFilType A043 PBSetVol
PBSetFVers SetWinColor AA41
SetFontLock A903 SetWindowPie NilE
SetFPos A044 SetWRefCon A918
PBSetFPos SetWfitle A91A
SetFScaleDisable A834 SetZ.one AOIB
SetGDevice AA31 ShieldCursor A855
SetGrowZ.One A04B ShowControl A957

70 System Traps
System Traps

Name Trap word Name Trap word


ShowCursor A853 sFindslnfoRecPtr (47)
ShowDitem A828 sFindsRsrcPtr (48)
ShowHide A908 sdeleteSRTRec (49)
ShowPen A8'Il SlotVInstall A06F
ShowWindow A915 SlotVRemove ACYlO
Shutdown A895 SndAddModifier ASO'l
ShutDwnPower (1) SndControl A806
ShutDwnStart (2) SndDisposeChannel A801
ShutDwnlnstall (3) SndDoCommand A803
ShutDwnRemove (4) SndDolmmediate A804
Slntlnstall ACYlS SndNewChannel A8CYT
SlntRemove ACY16 SndPlay A805
SizeControl A95C SpaceExtra A88E
SizeRsrc A9AS StackSpace A065
SizeResource Status AOOS
SizeWmdow A91D PB Status
SlopeFromAngle A8BC StdArc A8BD
SlotManager A<XiE StdBits A8EB
sReadByte (0) StdComment A8Fl
sReadWord (1) StdGetPic A8FE
sReadLong (2) StdLire A890
sGetcString (3) StdOval A8B6
sGetBlock (5) StdPoly A8CS
sFmdStruct (6) StdPutPic A8FO
sReadStruct (J) StdRect A8AO
sReadinfo (16) StdRgn A8Dl
sReadPRAMRec (17) StdRRect A8AF
sPutPRAMR.ec (18) StdText A882
sReadFHeader (19) StdTxMeas A8ED
sNextRsrc (20) StillDown A'J73
sNextTypesRsrc (21) StopAlert A986
sRsrclnfo (22) StringWidth A88C
sDisposePtr (23) StripAddress AOSS
sCkCardStatus (24) StuffHex A8(>6
sReadDrvrName (25) SubPt A87F
sFindDevBase (27) SwapMMUMode A05D
InitSDeclMgr (32) SysBeep A9C8
sPrimarylnit (33) SysEdit A9Cl
sCardChanged (34) SystemEdit
sExec (35) SysEnvirons AOOO
sOffsetData (36) SysError A9C9
InitPRAMR.ecs (37) SystemClick A9B3
sReadPBSize (38) SystemEvent A9B2
sCalcStep (40) SystemMenu A9BS
InitsRsrcTable (41) SystemTask A9B4
sSearchSRT (42) IBActivate A9D8
sUpdateSRT (43) IBAutoView A813
sCalcsPointer (44) TECalText A900
sGetDriver (45) IBQick A9D4
sPtlToSlot (46) TECopy A9DS

System Traps 71
Inside MacintoshX-Ref

Name Trap word Name Trap word


TECut A9D6 TextMcxle A889
1EDeactivate A900 TextSize A88A
'IEDelete A9m TextWidth A886
TEDispatch A83D TickCount A975
TEStylePaste (0) TrackBox A83B
TESetStyle (1) TrackConttol A968
TEReplaceStyle (2) TrackGoAway A91E
TEGetStyle (3) UnionRect A8AB
GetStyleHandle (4) UnionRgn ASE.5
SetStyleHandle (5) UniquelID A810
GetStyleScrap (6) UniqueID A9Cl
TEStylelnsert (1) UnloadSeg A9Fl
TEGetPoint (8) UnlodeScrap A9FA
TEGetHeight (9) UnloadScrap
TEDispose A9CD UnmountVol . AOOE
TEGetOffset A83C PBUnmountVol
TEGetText A9CB UnpackBits ASro
TEidle A9DA UpdateResFile Am
TEinit A9CC UpdtControl A953
TEinsert A9DE UpdtDialog A978
TEKey A9DC UprString A054
TENew A9D2 UseResFile A998
TEPaste A9DB ValidRect A92A
TEPinScroll A812 ValidRgn N»9
TEScroll A9DD Vlnstal1 A033
1ESelView A811 VRemove A034
TESetJust A9DF WaitMouseUp Am
1ESetSelect A9Dl Write A003
TESetrext A9CF PB Write
TestControl A966 WriteParam A038
TestDeviceAttribute AA2C WriteResourc.e A9BO
TEStyleNew A83E X2Fix A844
TEUpdate A9D3 X2Frac A846
TextBox A9CE XorRgn A8F:/
TextFace A888 z.eroScrap A9FC
TextFont A887 2'.oomWindow A83A

Trap word Name Trap word Name


ACXX> Open AOOS Status
PBOpen PB Status
AOOl aose ACXX> KillIO
PB Close PBKillIO
AOOl Read AOO'I GetVollnfo
PBRead PBGetVInfo
A003 Write A008 Create
PB Write PBCreate
A004 Control AfJ.1) Delete
PBControl PBDelete

72 System Traps
System Traps

Trap Word Name Trap Word Name


AOOA OpenRF A034 VRemove
PBOpenRF A035 OfHine
AOOB Rename PBOffline
PBRename A036 MoreMasters
AOOC GetFtlelnfo A038 WriteParam
PBGetlnfo ACJ39 ReadDateTme
AOOD SetFtlelnfo AmA SetDateTune
PBSetFinfo A03B De1ay
AOOE UnmountVol A03C CmpString
PBUnmountVol EqualStting
AOOF MountVol AmD Drvrinstall
PBMountVol (internal use ·only)
AOlO Allocate A03E DrvIRemove
PB Allocate (internal use only)
AOll GetEOF A03F InitUtil
PBGetEOF A040 ResrvMem
A012 SetEOF A041 SetFtlLock
PBSetEOF PBSetFLock
A013 FlushVol A042 RstFtlLock
PBFlushVol PBRstFLock
A014 GetVol A043 SetFilType
PBGetVol PBSetFVers
A015 SetVol A044 SetFPos
PBSetVol PBSetFPos
A016 InitQueue A045 FlushFile
A017 Eject PBFlushFtle
PBEject A047 SetTrapAddress
A018 GetFPos A049 HPurge
PBGetFPos A04A HNoPurge
A019 InitZone A04B SetGrowZ.One
AOlB SetZone A04C CompactMem
AOlC FreeMem A04D PurgeMem
AOlF DisposPtr A04E AddDrive
ACYl.O SetPtrSii.e (internal use only)
A021 GetPUSize A04F RDrvrinstall
A023 DisposHandle (internal use only)
A024 SetHandleSize AOSO RelString
A025 GetHandleSize A054 UprString
A027 ReallocHandle A055 StripAddress
A029 1-lli>ck A057 SetAppBase
AmA HUnlock SetApplBase
A02B EmptyHandle A05D SwapMMUMode
A02C InitApplZ.one A061 MaxBlodc
A02D SetApplLimit A062 PurgeSpace
A02E BlockMove A063 MaxApplZone
A02F PostEvent A064 MoveHHi
A030 OSEventAvail A065 StackSpace
A031 GetOSEvent A066 NewEmptyHandle
A032 FlushEvents A067 HSetRBit
A033 VInsta1l A068 HClrRBit

System Traps 73
Inside Macintosh X-Re/

Trap Word Name Trap Word Name


A009 HGetState ACTTE SetDefaultStartup
ACX>A HSetState AC1TF InternalWait
ACX>E SlotManager SetTtmeout (0)
sReadByte (0) GetTtmeout (1)
sReadWord (1) A080 GetVideoDefault
sReadLong (2) A081 SetVideoDefault
.sGetcString (3) A082 Slntlnstall
sGetBlock (5) A083 SetOSDefault
sFmdStruct (6) A084 GetOSDefault
sReadStruct (7) Aero SysEnvirons
sReadlnfo (16) AllA GetZone
sReadPRAMR.ec (17) AllD MaxMem
sPutPRAMR.ec (18) AllE NewPtr
sReadFHeader (19) A122 NewHandle
sNextRsrc (20) A126 HandleZ.One
sNextTypesRsrc (21) A128 RecoverHandle
sRsrclnfo (22) A12F PPostEvent
sDisposePtr (23) A146 GetTrapAddress
sCkCardStatus (24) A148 PtrZ.one
sReadDrvrName (25) A2f:IJ HFSDispatch
sFindDevBase (27) OpenWD (1)
sPrimarylnit (33) OoseWD (2)
sCardChanged (34) CatMove (5)
sExec (35) DirCreate (6)
sOffsetData (36) GetWDinfo (7)
InitPRAMRecs (37) GetFCBinfo (8)
sReadPBSi:ze (38) GetCatlnfo (9)
sCalcStep (40) SetCatlnfo (10)
InitsRsrcTable (41) SetVollnfo (11)
sSearchSRT (42) LockRng (16)
sUpdateSRT (43) UnlockRng (17)
sCalcsPointer (44) A801 SndDisposeChannel
sGetDriver (45) A802 SndAddModifier
sPtl'foSlot (46) A803 SndDoCommand
sFindslnfoRecPtr (47) A804 SndDolmmediate
sFindsRsrcPtr (48) A805 SndPlay
sdeleteSRTRec (49) A806 SndControl
A06F SlotVlnstall A800 SndNewChannel
A(JIO SlotVRemove A808 InitProcMenu
A(Jll AttachVBL A80') GetCVariant
A002 DoVBLTask A80A GetWVariant
A005 DTinstall A80B PopUpMenuSelect
A006 SlntRemove A80C RGetResource
A(Jl7 CountADBs A80D CountlResources
A008 GetlndADB ASOE GetllxResource
A009 GetADBinfo GetllndResource
A(JIA SetADBinfo A80F GetllxType
AOOB ADBRelnit GetllndType
AOOC ADBOp A810 UniquellD
AfJlD GetDefaultStartup A811 1ESelView

74 System Traps
System Traps

Trap Word Name Trap Word Name


A812 TEPinScroll A83B TrackBox
A813 1EAutoView A83C TEGetOtfset
A815 SCSIDispatch A83D TEDispatch
SCSIReset (0) TEStylePute (0)
SCSIGet (1) TESetStyle (1)
SCSISelect (2) TEReplaceStyle (2)
SCSICmd (3) TEGetStyle (3)
SCSIComplete (4) GetStyleHandle (4)
SCSIRead (5) SetStyleHandle (5)
SCSIWrite (6) GetStyleScrap (6)
SCSIInstall
SCSIRBlind
(7)
(8)
TEStylelmert
1EGetPoint
m
(8)
SCSIWBlind (9) TEGetHeight (9)
SCSIStat (10) A83E TEStyleNew
SCSISelAtn (11) A83F Long2Fix
SCSIMsgln (12) A840 Fix2Long
SCSIMsgOut (13) A841 Fix2Frac
A816 Pack8 A842 Frac2Fix
A817 CopyMask A843 Fix2X
A818 FtxAtan2 A844 X2Fix
A81C Countl Types A845 Frac2X
A81F Gett Resource A846 X2Frac
A820 GetlNamedResource A847 FracCos
A821 MaxSizeRsrc A848 FracSin
A826 InsMenultem A849 FracSqrt
A827 HideDitem A84A FracMul
A828 ShowDitem A84B FracDiv
A82B Pack9 A84D FtxDiv
A82C Pack to A84E GedtemCmd
A82D Packll A84F SetltemQnd
A82E Pack12 A850 InitCursor
Fix2Sma11Fract (1) A851 SetCursor
Sma11Fract2Fix (2) A852 HideCursor
CMY2RGB (3) A853 ShowCursor
RGB2CMY (4) A855 ShieldCursor
HSL2RGB (5) A856 ObscureCursor
RGB2HSL (6) A858 BitAOO
HSV2RGB (7) A859 BitXor
RGB2HSV (8) ASSA BitNot
GetColor (9) A85B BitOr
A82F Pack13 A85C BitShift
A830 Pack14 A85D Biffst
A831 Pack15 A85E BitSet
A834 SetFScaleDisable A85F BitClr
A835 FontMetrics A861 Random
A836 GetMaskTable A862 ForeColor
A837 MeasureText A863 BackColor
A838 CalcMask A864 ColorBit
A839 SeedFill A865 GetPixel ·
A83A ZoomWindow A866 Stuftllex

System Traps 75
Inside Macintosh X-Re/

Trap Word Name Trap Word Name


A867 LongMul ShutDwninstall (3)
A868 FIXMul ShutDwnRemove (4)
A869 FixRatio A896 HidePen
A86A HiWorcl A897 ShowPen
A86B LoWord A898 GetPenState
A86C FixRound A89') SetPenState
A86D InitPort A89A GetPen
A86E InitGraf A89B PenSize
A86F OpenPort A89C PenMode
A870 LocalToGlobal A89D PenPat
A871 GlobalToLocal A89E PenNonnal
A872 GrafDevice A8AO StdRect
A873 SetPort ASAI FrameRect
A874 GetPort A8A2 PaintRect
A875 SetPBits A8A3 EraseRect
SetPortBits A8A4 InveIRect
A876 PortSize InvertRect
A8n MovePortTo A8AS FtllRect
A878 SetOrigin A8A6 EqualRect
A879 SetClip A8A7 SetRect
A87A GetClip A8A8 OffsetRect
A87B QipRect A8A9 InsetRect
A87C BackPat A8AA SectRect
A87D OoseCPort A8AB UnionRect
A87D OosePort A8AC Pt2Rect
A87E AddPt A8AD PtlnRect
A87F SubPt A8AE EmptyReCt
A880 SetPt A8AF StdRRect
A881 F.qua1Pt A8BO FrameRoundRect
A882 StdText A8Bl PaintRoundRect
A883 DrawChar A8B2 EraseRoundRect
A884 Drawstring A8B3 InverRoundRect
A885 DrawText InvertRoundRect
A886 TextWidth A8B4 FillRoundRect
A887 TextFont ASBS ScriptUtil
A888 TextFace smFontScript (0)
A889 TextMode smlntlScript (2)
A88A TextSiz.e smKybdScript (4)
A88B GetFontlnfo smFont2Script (6)
A88C StringWidth smGetEnvirons (8)
A88D OlarWidth smSetEnvirons (10)
A88E SpaceExtta smGetScript (12)
A890 StdLine smSetScript (14)
A891 LineTo smCharByte (16)
A892 Llne smChaflype (18)
A893 MoveTo smPixel2Char (20)
A894 :Move smChar2Pixel (22)
A89S Shutdown smTranslit (24)
ShutDwnPower (1) smFmdWorcl (26)
ShutDwnStart (2) smHiliteText (28)

76 System Traps
System Traps

Trap Word Name Trap Word Name


smDrawJust (30) A8E2 EmptyRgn
smMeasureJust (32) A8E3 EqualRgn
A8B6 StdOval ASEA SectRgn
A8B7 FrameOval ABm UnionRgn
A8B8 PaintOval A8E6. DiflRgn
A8B9 EraseOval A8E7 XorRgn
A8BA lnvertOval A8E8 PtlnRgn
A8BB FtllOval A8E9 RectlnRgn
A8BC SlopeFromAngle A8EA SetStdProcs
ASBD StdArc A8EB StdBits
ASBE FrameArc ASEC CopyBits
ASBF PaintArc A8ED StdTxMeas
A8CO EraseArc A8FE StdGetPic
A8Cl Invert.Arc ASEF ScrollRect
A8Cl FtllArc A8f'O StdPutPic
A8C3 PtToAngle A8Fl StdComment
A8C4 AngleFromSlope A8F2 PicComment
A8C5 StdPoly A8F3 OpenPicture
A8C6 FramePoly A8F4 aosePicture
ASC/ PaintPoly A8F5 KillPicture
A8C8 ErasePoly A8F6 DrawPicture
A8C9 InvenPoly A8F8 ScalePt
A8CA FtllPoly A8F9 MapPt
A8CB OpenPoly A8FA MapRect
ASCC OosePgon ASFB MapRgn
OosePoly ASFC MapPoly
A8CD KillPoly ASFD PrGlue
ASCE OffsetPoly A8FE InitFonts
ASCF PackBits A8FF GetFName
A800 UnpackBits GetFontName
A8Dl StdRgn A900 GetFNum
A8D2 FrameRgn A901 FMSwapFont
A8D3 PaintRgn A002 RealFont
A8D4 EraseRgn A903 SetFontLock
A8D5 InverRgn A904 DrawGrowlcon
InvertRgn A905 DragGrayRgn
A8D6 FillRgn A906 NewString
A8D8 NewRgn A'X11 SetString
ASD'J DisposRgn A908 ShowHide
DisposeRgn A9f1) CaleVis
A8DA OpenRgn N¥JA CalcVBehind
A8DB OoseRgn CalcVisBehind
A8DC CopyRgn A90B OipAbove
A8DD SetEmptyRgn A90C PaintOne
A8DE SetRecRgn A90D PaintBehind
A8DF SetRectRgn AOOE ·saveOld
RectRgn A90F DrawNew
A8EO OfsetRgn A910 GetWMgrPort
OffsetRgn A911 CheckUpdate
A8El InsetRgn A912 lnitWindows

System Traps 77
Inside MacintoshX-Ref

Trap Word Name Trap Word Name


A913 NewWmdow A941 GetlunStyle
A914 DisposWindow GetltemStyle
DisposeWindow A942 SetlbnStyle
A915 ShowWindow SetltemStyle
A916 HideWmdow A943 GetltmMarlc
A917 GetWRefCon GetltemMarlc
A918 SetWRefCon A944 SetltmMark
A919 GetWiitle SetltemMarlc
A91A SetWiitle A945 Oleckltem
A91B MoveWindow A946 Getltem
A91C HiliteWindow A947 Setltem
A91D Sii.eWmdow A948 CalcMenuSii.e
A91E TrackGoAway A949 GetMHaOOle
A91F SelectWmdow A94A SetMFlash
A920 BringToFront SetMenuFlash
A921 SendBehind A94B Plotlcon
Am BeginUpdate A94C FlashMenuBar
A923 EndUpdate A94D AddResMenu
A924 FrontWindow A94E PinRect
A925 DragWindow A94F DeltaPoint
A926 Drag1beRgn A950 CountMitems
A927 lnvalRgn A951 lnsertResMenu
A928 lnvalRect A952 DelMenultem
NJ29 ValidRgn A953 UpdtControl
A92A ValidRect A954 NewControl
A92B GrowWindow A9SS DisposControl
A92C FindWindow DisposeControl
A92D CloseWindow A956 KillControls
A92E SetWindowPie A957 ShowControl
ACJlF GetWindowPie A958 HideControl
A930 lnitMenus A959 MoveControl
A931 NewMenu A9SA GetCReOC:on
A932 DisposMenu A95B SetCRefCon
DisposeMenu A95C SizeControl
A933 AppendMenu A95D HiliteControl
A934 ClearMenuBar A95E GetCTitle
A935 lnsertMenu A95F SetCTitle
A936 DeleteMenu A9ro GetaIValue
A937 DrawMenuBar A961 GetMinQI
A938 HiliteMenu GetCtlMin
A939 Enableltem A962 GetMaxCtl
A93A Disableltem GetCtIMax
A93B GetMenuBar A963 SetCtlValue
A93C SetMenuBar A964 SetMinCtl
A93D MenuSelect SetCtIMin
A93E MenuKey A965 SetMaxQI
A93F Getlbnlcon SetCtIMax
Getltemlcon A966 TestControl
A940 Setiunicon A967 DragControl
Setltemlcon A968 TrackControl

78 System Traps
System Traps

Trap Word Name Trap Word Name


A9fl) DrawControls A9'JB SetResLoad
A96A GetCtlAction A99C CountResources
A96B SetaIAction A99D GetlndResource
A96C, FindControl A99E CountTypes
A96D Drawl Control A'»F GetlndType
A96E Dequeue A9AO GetResource
A96F Enqueue A9Al GetNamedResource
A970 GetNextEvent A9A2 LoadResource
A971 EventAvail A9A3 ReleaseResource
A972 GetMouse A9A4 HomeResFile
A973 StillDown A9AS Si7.eRsrc
A974 Button Si7.eResource
A975 TickCount A9A6 GetResAttts
A976 GetKeys A9A7 SetResAttts
A9Tl WaitMouseUp A9A8 GetReslnfo
A978 UpdtDialog A9A9 SetReslnfo
NJ79 CouldDialog A9AA ChangedResource
A97A FreeDialog A9AB AddResource
A97B InitDialogs A9AD RmveResource
A97C GetNewDialog A9AF ResError
A97D NewDialog A9BO WriteResource
A'T/E SelIText A9Bl CreateResFtle
A97F IsDialogEvent A9B2 SystemEvent
A980 DialogSelect A9B3 SystemClick
A981 DrawDialog A9B4 SystemTask
A982 aoseDialog A9B5 SystemMenu
A983 DisposDialog A9B6 OpenDeskAcc
A984 FmdDitem A9B7 OoseDeskAcc
A985 Alert A9B8 GetPattem
A986 StopAlert A9B9 GetCursor
A987 NoteAlert A9BA GetString
A988 CautionAlert A9BB Gedeon
A989 CouldAlert A9BC GetPicture
A98A FreeAlert A9BD GetNewWindow
A98B ParamText A9BE GetNewControl
A98C ErrorSound A9BF GetRMenu
A98D GetDitem GetMenu
A98E SetDitem A9CO GetNewMBar
A98F SetIText A9Cl UniqueID
A990 GetlText A9C2 SysEdit
A9'Jl ModalDialog System&lit
Am DetachResource A9C3 KeyTrans
A9')3 SetResfurge A9C4 OpenRFPenn
A9C)4 CurResFile A9C5 RsrcMapEntry
A9'JS InitResources A9C6 Secs2Date
A9')6 RsrcZOnelnit A9C7. Date2Secs
Am OpenResFtle A9C8 SysBeep
A9'J8 UseResFile A9CTJ SysError
Am UpdateResFile A9CB TEGetText
A99A OoseResFile A9CC TEinit

System Traps 79
Inside Macintosh X-Ref

Trap Word Name Trap Word Name


A9CD TEDispose LSetSelect (92)
A9CE TextBox I.Sae (96)
A9CF TESetText LUpdate (100)
A900 TECalText A9E8 Packl
A9Dl TESetSelect (reserved for future use)
A9D2 TENew A9E9 Pack2
A9D3 TEUpdate DIBadMount (0)
A9D4 1EOick. DILoad (2)
A9D5 TECopy DIUnload (4)
A9D6 TECut DIFonnat (6)
A9f:fl 1EDelete DIVerify (8)
A9D8 TEActivate DIZ.ero (10)
A9T» TEDeactivate A9EA Pack3
A9DA TEidle SFPutFile (1)
A9DB TEPaste SFGetFtle (2)
A9DC TEKey SFPPutFile (3)
A9DD TEScroll SFPGetFtle (4)
A9DE TEIJ]sen A9EB Pack4
A9DF TESetJust (synonym: FP68K)
A9F.O Munger A90C Pack5
A9El HandToHand (synonym: Elems68K)
A9F2 Pb'l'oXHand A9ED Pack6
A9E3 Pb'l'oHand IUDateString (0)
A9FA HandAndHand IUfimeString (2)
~ InitPack IUMebic (4)
A9FfJ InitAllPacks IUOOetlntl (6)
A9E:1 PackO IUSetlntl (8)
LActivate (0) IUMagString (10)
LAddColwnn (4) IUMaglDString (12)
LAddRow (8) IUDatePString (14)
LAddToCell (12) IUTimePString (16)
LAutoScroll (16) A9FE Pack7
LCellSize (20) NumToString (0)
LOick (24) StringToNum (1)
LChCell (28) PStI2Dec (2)
LDelColwnn (32) CStaDec (4)
LDelRow (36) A9EF PtrAndHand
LDispose (40) A9R> LoadSeg
LDoDraw (44) A9Fl UnloadSeg
LDraw (48) A9F2 Launch
LFmd (52) A9F3 Cllain
LGetCell (56) A9F4 ExitToShell
LGetSelect (60) A9F5 GetAppPanns
LLastClick (64) A9F6 GetResFtleAttts
LNew (68) A9F7 SetResFtleAttts
LNextCell (72) A9F9 InfoScrap
LRect (76) A9FA UnlodeScrap
LScroll (80) UnloadScrap
LSeatdl (84) A9FB LodeScrap
LSetCell (88) LoadScrap

80 System Traps
System Traps

Trap Word Name Trap Word Name


A9FC z.eroScrap AA31 SetGDevice
A9ID GetScrap AA32 GetGDevice
A9FE PutScrap AA33 Color21ndex
AAOO OpenCport AA34 Index2Color
AAOl InitCport AA35 InvertColor
AACB NewPixMap AA36 RealColor
AA04 DisposPixMap AA37 GetSubTable
AACfJ CopyPixMap A>3.} MakeITable
AA<Xl SetCPortPix AA3A AddSearch
AACJl NewPixPat AA3B AddComp
AA08 DisposPixPat AA3C, SetaientID
AA(1) CopyPixPat AA3D ProtectEntry
AAOA PenPixPat AA3E ReserveEntty
AAOB BackPixPat AA3F SetEnb'ies
AAOC GetPixPat AA40 QDEnor
AACD MakeRGBPat AA41 SetWmColor
AAfE FillCRect AA42 GetAuxWm
AACF FillCOval AA43 SetCtlColor
AAlO FillCRoundRect AA44 GetAuxaI
AAll FillCArc AA45 NewCWindow
AA12 FillCRgn AA46 GetNewCWindow
"AA13 FillCPoly AA47 SetDeskCPat
AA14 RGBForeColor AA48 GetCWMgrPort
AA1S RGBBackColor AA49 SaveEntties
AA16 SetCPixel AA4A RestoreEntries
AA17 GetCPixel AA4B NewCDialog
AA18 GetCTable AA4C DelSearch
AA19 GetForeColor AA4D DelComp
AAlA GetBackColor AA4E SetStdCProcs
AAlB GetCCursor AA4F caicCMask
AAlC SetCCursor AA:IJ SeedCFill
AAlD AllocCursor AAOO DelMCEntries
AAlE GetClcon AA61 GetMCinfo
AAlF PlotCleon AA62 SetMCinfo
AA21 OpColor AA63 DispMCinfo
AAZl HiliteColor AA64 GetMCF.ntty
AA23 CharExtra AA65 SetMCEntries
AA24 DisposCTable AAM MenuOtoice
AA15 DisposCicon ~ lnitPalettes
AA1f> DisposCCursor AA91 NewPalette
AA'I1 GetMaxDevice AA'12 GetNewPalette
AA12, GetCTSeed AA'13 DiSposePalette
AA19 GetDevi~st AA94 ActivatePalette
AA1A GetMainDevice AA95 SetPalette
AA2B GetNextDevice AA9fJ GetPalette
AA2C TestDeviceAttribute AA97 PmForeColor
AA'1D SetDeviceAtbibute AA98 PmBackColor
AME InitGDevice AA'R AnimateEntJy
AA2F NewGDevice AA9A AnimatePalette
AA?IJ DisposGDevice AA9B GetEntryColor

System Traps 81
Inside Macintosh X-Ref

Trap Word Name


AA9C SetEnttyColor
AA9D GetEnttyUsage
AA9B SetBnttyUsage
AA9F CTab2Palette
AAAO Palette2CTab

82 System Traps
APPENDIX C: GLOBAL VARIABLES
This appendix gives an alphabetical list of all system global variables described in Inside
Macintosh, along with their locations in memory.
Name Location Contents
ABusVars $2D8 Pointer to AppleTalk variables
ACmmt $A9A Stage number (0 through 3) oflast alert (word)
ANumber $A98 Resource ID oflast alert (word)
ApFontID $984 Font number of application font (word)
ApplLlmit $130 Application heap limit
ApplScratch $A78 12-byte scratch area resetved for use by applications
ApplZone $2AA Address of application heap zone
AppPannHandle $AEC Handle to Fmder infonnation
AtMenuBottom $AOC Flag for menu scrolling (word)
AuxWmHead $COO Auxiliary window list header (long)
BootDrive $210 Working directory reference number for system startup volume
(word)
BufPtr $10C Address of end of jump table
BuffgDate $304 File tags buffer: date and time of last modification (long)
BuITgFBkNum $302 File tags buffer: logical block number (word)
BuITgFFlg $300 File tags buffer: flags (word: bit l=l if resource fork)
BuffgFNum $2FC File tags buffer: file number (long)
CaretTune $2F4 Caret-blink intetval in ticks (long)
CPUflag $12F Microprocessor in use (word)
Crst'fhresh $8EC Mouse-scaling threshold (word)
CurActivate $A64 Pointer to window to receive activate event
CurApName $910 Name of current application (length byte followed by up to 31
characters)
CurApRefNum $900 Reference number of current application, s resource file (word)
CurDeactive $A68 Pointer to window to receive deactivate event
CurDirStore $398 Directory ID of directory last opened (long)
CurITOffset $934 Offset to jump table from location pointed to by AS (word)
CurMap $ASA Reference number of current resource file (word)
CurPageOption $936 Sound/screen buffer configuration passed to Chain or Launch
(word)

Global Variables 83
Inside Macintosh X-Re/

Name Location Contents


CurPitch $280 Value of count in square-wave synth~izer buffer (word)
CurrentAS $904 Address of boundary between application globals and application
parameters
CurStackBase $908 Address of base of stack; start of application globals
DABeeper $A9C Address of current sound procedure
DASbings $AAO Handles to ParamText strings (16 bytes)
DetltStack $322 Default space allotment for stack (long)
DefVCBPtr $352 Pointer to default volume control block
DeskHook $A6C Address of procedure for painting desktop or responding to clicks
on desktop
DeskPattem $A3C Pattern with which desktop is painted (8 bytes)
DeviceLlst $8A8 Handle to the first element in the device list
DlgFont SAFA Font number for dialogs and alerts (word)
DoubleTime $2FO Double-click inteIVal in ticks (long)
DragHook $9F6 Address of procedure to execute during TrackGoAway,
DragWindow, GrowWindow, DragGrayRgn, TrackControl, and
DragControl
DragPattem $A34 Pattern of dragged region's outline (8 bytes)
DtvQHdr $308 Drive queue header (10 bytes)
DSAlertRect $3F8 Rectangle enclosing system error alert (8 bytes)
DSAlertTab $2BA Pointer to system error alert table in use
DSEnCode SAR> Current system error ID (word)
DrQueue $09.2 Deferred task queue header (10 bytes)
EventQueue $14A Event queue header (10 bytes)
ExtStsDT $2BE ExtemaVstatus intenupt vector table (16 bytes)
FCBSPtr $34E Pointer to file-control-block buffer
FmderName $2EO Name of the Finder (length byte followed by up to 15 characters)
FractEnable $BF4 Nomero to enable fractional widths (byte)
FScaleDisable $A63 Nonzero to disable font scaling (byte)
FSFCBLen $3F6 Size of a flle control block; on 64K ROM, it contains-I (word)
FSQHdr $360 File 1/0 queue header (10 bytes)
GhostWindow $A84 Pointer to window never to be considered frontmost
GrayRgn $9EE Handle to region drawn as desktop
GZRootHnd $328 Handle to relocatable block not to be moved by grow zone
function

84 Global Variables
Global Variables

Name Location Contents


HeapEnd $114 Address of end of application heap zone
HiliteMode $938 Set if highlighting is on
HiliteRGB $DAO Default highlight color for the system
IntlSpec $BAO International software installed if not equal to -1 (long)
JADBProc 06B8 Pointer to ADBRelnit preprocessing/ postprocessing routine
.JDTimtall $I:OC Jump vector for DTinstall routine
JFetch $8F4 Jump vector for Fetch function
IlODone $8FC Jump vector for IODone function
JoumalRef $8E8 Reference number of journaling device driver (word)
JStash $8F8 Jump vector for Stash function
JVBLTask $028 Jump vector for DoVBLTask routine
KbdLast $218 ADB address of the keyboard last used (byte)
KbdType $21E Keyboard type of the keyboard last used (byte)
KeyRepThresh $190 Auto-key rate (word)
KeyThresh $18E Auto-key threshold (word)
Lutf'OND $BC2 Handle to last family record used
Lo3Bytes $31A $00FFFFFF
Lvl2DT $1B2 Level-2 secondary interrupt vector table (32 bytes)
MainDevice $8A4 Handle to the current main device
MBai£nable $A20 Unique menu ID for active desk accessory, when menu bar
belongs to the accessory (word)
MBarHeight $BAA Height of menu-bar (word)
MBarHook $A2C Address of routine called by MenuSelect before menu is drawn
MemEtT $220 Current value of MemError (word)
MemTop $108 Address of end of RAM (on Macintosh XL, end of RAM available
to applications)
MenuCinfo $DSO Header for menu color infonnation table
MenuDisable $B54 Menu ID and item for sleeted diasabled item
MenuFlash $A24 Count for duration of menu item blinking (word)
MenuHook $A30 Address of routine called during MenuSelect
MenuList $A1C Handle to current menu list
MinStack $31E Minimum space allobnent for stack (long)
MinusOne $A06 $FFFFFFFF
MMU32Bit $CB2 Current address mode (byte)

Global Variables 85
Inside Macintosh X-Ref

Name Location Contents


OldContent $9EA Handle to saved content region
OldStructure $9E6 Handle to saved structure region
OneOoo $A02 $00010001
PaintWhite $9DC Flag for whether to paint window white before update event
(word)
PortBUse $291 Current availability of serial port B (byte)
PrintEJT $944 Result code from last Printing Manager routine (word)
QDColors $8BO Default QuickDraw colors
RAMBase $2B2 Trap dispatch table's base address for routines in RAM
ResErr $AOO Current value of ResError (word)
ResErrProc $AF2 Address of resource error procedure
ResLoad $ASE Current SetResLoad state (word)
ResumeProc $A8C Address of resume procedure
RndSeed $156 Random number seed (long)
ROM8S $28E Version number of ROM (word)
RO!\mase $2AE Base address of ROM
RO!\mase $2AE Base address of ROM
ROMFontO $980 Handle to font record for system font
RomMaplnsert $B9E Flag for whether to insert map to the ROM resources (byte)
SaveUpdate $9DA Flag for whether to generate update events (word)
SaveVisRgn $9F2 Handle to saved visRgn
SCCRd $108 sec read base address
SCCWr $1DC sec write base address
ScrapCount $968 Count changed by ~roScrap (word)
ScrapHandle $964 Handle to desk scrap in memory
ScrapName $96C Pointer to scrap file name (preceded by length byte)
ScrapSize $960 Size in bytes of desk scrap (long)
ScrapState $96A Tells where desk scrap is (word)
Scratch8 $9FA 8-byte scratch area
Scratch20 $1FA 20-byte scratch area
ScrDmpEnb $2F8 0 if GetNextEvent shouldn't process Command-Shift-number
combinations (byte)
ScrHRes $104 Pixels per inch horizontally (word)
ScmBase $824 Address of main screen buffer

86 Global Variables
Global Variables

Name Location Contents


ScrVRes $102 Pixels per inch vertically (word)
SdVolume $260 Current speaker volume (byte: low-order three bits only)
SEvtEnb $1SC 0 if SystemEvent should return FALSE (byte)
SFSaveDisk $214 Negative of volume reference number, used by Standard Ftle
Package (word)
SoundBase $266 Pointer to free-fonn synthesizer buffer
SoundLevel $27F Amplitude in 740-byte buffer (byte)
SoundPtr $262 Pointer to four-tone record
SPAlann $200 Alann setting (long)
SPATalkA $1F9 AppleTalk node ID hint for modem port (byte)
SPATalkB $1FA AppleTalk node ID hint for printer port (byte)
SPClikCaret $200 Double-click and caret-blink times (byte)
. SPConfig $1FB Use types for serial ports (byte)
SPFont $204 Application font number minus 1 (word)
SPKbd $206 Auto-key threshold and rate (byte)
SPMisc2 $20B Mouse scaling, system startup disk, menu blink (byte)
SPPortA $1FC Modem port configuration (word)
SPPortB $1FE Printer port configuration (word)
SPPrint $207 Printer connection (byte)
SPValid $1F8 Validity status (byte)
SPVolCtl $208 Speaker volume setting in parameter RAM (byte)
SynListHandle $032 Handle to synthetic font list
SysEvtMask $144 System event mask (word)
SysFontFam $BA6 If nonzero, the font number to use for system font (word)
SysFontSize $BA8 If nonzero, the size of the system font (word)
SysMap $A58 Reference number of system resource file (word)
SysMapHndl $AS4 Handle to map of system resource file
SysParam $1F8 Low-memory copy of parameter RAM (20 bytes)
SysResName $AD8 Name of system resource file (length byte followed by up to 19
characters)
SysZone $2A6 Address of system heap zone
TEDoText $A70 Address of TextEdit multi-purpose routine
1ERecal $A74 Address of routine to recalculate line starts for TextEdit
TEScrpHandle $AB4 Handle to TextF.dit scrap

Global Variables 87
Inside MacintoshX-Ref

Name Location Contents


TEScrpLength $ABO Size in bytes of TextEdit scrap (long)
TheGDevice $CC8 Handle to current active device (long)
ikMenu $A26 Menu ID of currently highlighted menu (word)
TheZ.one $118 Address of cunent heap zone
Ticks $16A Current number of ticks since system startup (long)
Tune $20C Seconds since midnight, January l, 1904 (long)
TuneDBRA $DOO Number of times the DBRA instruction can be executed per
millisecond (word)
TuneSCCDB $002 Number of times the SCC can be accessed per millisecond (word)
TuneSCSIDB $DA6 Number of times the SCSI can be accessed per millisecond (word)
TmpResl...oad $B9F Temporary SetResLoad state for calls using ROMMapinsert (byte)
ToExtFS $3F2 Pointer to external file system
ToolScratch $9CE 8-byte scratch area
TopMapHndl $A50 Handle to resource map of most recently opened resource file
TopMenultem $AOA Pixel value of top of scrollable menu
UTableBase $11C Base address of unit table
VBLQueue $160 Vertical retrace queue header (10 bytes)
VCBQHdr $356 Volume-control-block queue header (10 bytes)
VIA $IDA VIA base address
WidthListHand $8FA Hand1e to a list of handles to recently-used width tables
WidthPtr $BIO Pointer to global width table
WidthTabHandle $B2A Handle to global width table
WindowList $906 Pointer to first window in window list; 0 if using events but not
windows
WMgrPort $9DE Pointer to Window Manager port

88 Global Variables
GLOSSARY

access path: A description of the route that the File Manager follows to access a file; created when
a file is opened.
access path buffer: Memory used by the File Manager to ttansfer data between an application
and a file.
acknowledge cycle: For the NuBus: Last period of a transaction during which I ACK is asserted
by a slave responding to a master. Often shortened to ack cycle.
action procedure: A procedure, used by the Control Manager function TrackControl, that
defines an action to be perfonned repeatedly for as long as the mouse button is held down.
activate event: An event generated by the Window Manager when a window changes from active
to inactive or vice versa.
active control: A control that will respond to the user's actions with the mouse.
active end: In a selection, the location to which the insertion point moves to complete the
selection.
active window: The fronttnost window on the desktop.
ADD device table: A structure in the system heap that lists all devices cormected to the Apple
DeskTop Bus.
address: A number used to identify a location in the computer's address space. Some locations are
allocated to memory, others to 1/0 devices.
address mark: In a sector, infonnation that's used internally by the Disk Driver, including
infonnation it uses to detennine the position of the sector on the disk.
ALAP: See AppleTalk Link Acc~ss Protocol
ALAP frame: A packet of data transmitted and received by ALAP.
ALAP protocol type: An identifier used to match particular kinds of packets with a particular
protocol handler.
alert: A warning or report of an error, in the fonn of an alert box, sound from the Macintosh's
speaker, or both.
alert box: A box that appears on the screen to give a warning or report an error during a
Macintosh application.
alert template: A resource that contains infonnation from which the Dialog Manager can create an
alert.
alert window: The window in which an alert box is displayed.
alias: A different name for the same entity.

Glossary 89
Inside Macintosh X-Ref

allocate: To reserve an area of memory for use.


allocation block: Volume space composed of an integral number of logical blocks.
amplitude: The maximum vertical distance of a periodic wave from the horizontal line about
which the wave oscillates.
AMU (Address Mapping Unit): For the Macintosh II: A custom integrated circuit that allows
an operating system to quickly reconfigure the arrangement of memory without physically moving
data. Different tasks can be "swapped" within the same space. ·
anchor point: In a selection, the location of the insertion point when the selection was started.
Apple Talk address: A socket's number and its node ID number.
Apple Talk Link Access Protocol (ALAP): The lowest-level protocol in the AppleTalk
architecture, managing node-to-node delivery of frames on a single AppleTalk network.
Apple Talk Manager: An interface to a pair of RAM device drivers that enable programs to send
and receive information via an AppleTalk network.
Apple Talk Transaction Protocol (ATP): An AppleTalk protocol that's a DDP client It allows
one ATP client to request another ATP client to perform some activity and report the activity's result
as a response to the requesting socket with guaranteed delivery.
application font: The font your application will use unless you specify otherwise--Geneva, by
default
application heap: The portion of the heap available to the numing application program and the
Toolbox.
application heap limit: The boundary between the space available for the application heap and
the space available for the stack.
application heap zone: The heap zone initially provided by the Memory Manager for use by the
application program and the Toolbox; initially equivalent to the application heap, but may be
subdivided into two or more independent heap zones.
application list: A data structure, kept in the Desktop file, for launching applications from their
documents in the hierarchical file system. For each application in the list, an entry is maintained that
includes the name and signature of the application, as well as the directory ID of the folder
containing it
application parameters: Thirty-two bytes of memory, located above the application globals,
reserved for system use. The first application parameter is the address of the first QuickDraw global
variable.
application space: Memory that's available for dynamic allocation by applications.
application window: A window created as the result of something done by the application,
either directly or indirectly (as through the Dialog Manager).
arbitration phase: The phase in which an initiator attempts to gain control of the bus.
ascent: The vertical distance from a font's base line to its ascent line.

90 Glossary
Glossary

ascent line: A horizontal line that coincides with the tops of the tallest characters in a font.
asynchronous communication: A method of data transmission where the receiving and
sending devices don't share a common timer, and no timing data is transmitted.
asynchronous execution: After calling a routine asynchronously, an application is free to
perfonn other tasks until the routine is completed.
at-least-once transaction: An ATP transaction in which the requested operation is perfonned at
least once, and possibly several times.
ATP: See AppleTalk Transaction Protocol
auto-key event: An event generated repeatedly when the user presses and holds down a character
key on the keyboard or keypad.
auto-key rate: The rate at which a character key repeats after it's begun to do so.
auto-key threshold: The length of time a character key must be held down before it begins to
repeat
auxiliary control record: A Control Manager data structure containing the infonnation needed
for drawing controls in color.
auxiliary window record: A Window Manager data structure that stores the color infonnation
needed for each color window.
background activity: A program or process that runs while the user is engaged with another
application.
background procedure: A procedure passed to the Printing Manager to be run during idle times
in the printing process.
base line: A horizontal line that coincides with the bottom of each character in a font, excluding
descenders (such as the tail of a "p").
baud rate: The measure of the total number of bits sent over a transmission line per second.
Binary-Decimal Conversion Package: A Macintosh package for converting integers to
decimal strings and vice versa.
bit image: A collection of bits in memory that have a rectilinear representation. The screen is a
visible bit image.
bit map: A set of bits that represent the position and state of a corresponding set of items; in
QuickDraw, a pointer to a bit image, the row width of that image, and its boundary rectangle.
BIU (bus interface unit): For the Macintosh II: The electronics connecting the MC68020 bus
to the NuBus.
block: A group regarded as a unit; usually refers to data or memory in which data is stored. See
allocation block and memory block.
block contents: The area that's available for use in a memory block.

Glossary 91
Inside Macintosh X-Ref

block device: A device that reads and writes blocks of bytes at a time. It can read or write any
accessible block on demand
block header: The internal "housekeeping" info1D1ation maintained by the Memory Manager at
the beginning of each block in a heap zone.
block map: Same as volume allocation block map.
board sResource list: A standard Apple sResource list that must be present in every NuBus slot
card that communicates with the Paris.
boundary rectangle: A rectangle, defined as pan of a QuickDraw bit map, that encloses the
active area of the bit image and imposes a coordinate system on it Its top left comer is always
aligned around the fust bit in the bit image.
break table: A list of templates that determine the general rules for making word divisions in a
particular script
break: 1be condition resulting when a device maintains its transmission line in the space state for
at least one frame.
bridge: An intelligent link between two or more AppleTal.k networlcs.
broadcast service: An ALAP seIVice in which a frame is sent to all nodes on an AppleTalk
network.
bundle: A resource that maps local IDs of resources to their actual resource IDs; used to provide
mappings for file references and icon lists needed by the Finder.
bus free phase: The phase in which no SCSI device is actively using the bus.
button: A standard Macintosh control that causes some immediate or continuous action when
clicked or pressed with the mouse. See also radio button
byte lane: Any of the four bytes that make up the NuBus data width. NuBus slot cards may use
any or all of the byte lanes to communicate with each other or with the Paris.
byte swapping: The process by which the order of bytes in each 4-byte NuBus word is changed
to confonn to the byte order of certain processors.

card-generic driver: A driver that is designed to work with a variety of plug-in cards.
card-specific driver: A driver that is designed to work with a single model of plug-in card.
caret-blink time: The inteJVal between blinks of the caret that marks an insertion point.
caret: A generic tenn meaning a symbol that indicates where something should be inserted in text.
The specific symbol used is a vertical bar ( I ).

catalog tree file: A file that maintains the relationships between the files and directories on a
hieran:hical directory volume. It corresponds to the file directory on a flat directory volume.
cdev: A resource file containing device infonnation, used by the Control PaneL

92 Glossary
Glossary

cell: The basic component of a list from a strucwral point of view; a cell is a box in which a list
element is displayed.
cGrafPort: The drawing environment in Color QuickDraw, including elements such as a pixel
map, pixel patterns, transfer modes, and arithmetic drawing modes.
channel: A queue that's used by an application to send commands to the Sound Manager.
character code: An integer representing the character that a key or combination of keys on the
keyboard or keypad stands for.
character device: A device that reads or writes a stream of characters, one at a time. It can neither
skip characters nor go back to a previous character.
character image: An arrangement of bits that defines a character in a font
character key: A key that generates a keyboard event when pressed; any key except Shift, Caps
Lock, Command, or Option.
character offset: 1be horizontal separation between a character rectangle and a font rectangle.
character origin: The point on a base line used as a reference location for drawing a character.
character position: An index into an array containing text, starting at 0 for the first character.
character rectangle: A rectangle enclosing an entire character image. Its sides are defined by the
image width and the font height
character style: A set of stylistic variations, such as bold, italic, and underline. 1be empty set
indicates plain text (no stylistic variations).
character width: 1be distance to move the pen from one character's origin to the next character's
origin.
check box: A standard Macintosh control that displays a setting, either checked (on) or unchecked
(off). Clicking inside a check box reverses its setting.
Chooser: A desk accessory that provides a standard interface for device drivers to solicit and
accept specific choices from the user.
chunky: A pixel image in which all of a pixel's bits are stored consecutively in memory, all of a
row's pixels are stored consecutively, and rowBytes indicates the offset from one row to the next
clipping: Limiting drawing to within the bounds of a particular area.
clipping region: Same as clipRgn.
clipRgn: The region to which an application limits drawing in a grafPort.
clock chip: A special chip in which are stored parameter RAM and the current setting for the date
and time. This chip is powered by a battery when the system is off, thus preseiving the infonnation
close routine: The part of a device driver's code that implements Device Manager aose calls.
closed driver: A device driver that cannot be read from or written to.

Glossary 93
Inside MacintoshX-Re/

closed file: A me without an access path. Cosed files cannot be read from or written to.
clump: A group of contiguous allocation blocks. Space is allocated to a new file in clumps to
promote me contiguity and avoid fragmentation.
clump size: The number of allocation blocks to be allocated to a new me.
Color Look-Up Table (CLUT): A data suucture that maps color indices, specified using
QuickDraw, into actual color values. Color Look-Up Tables are internal to certain types of video
cards.
Color Look-Up Table device: This kind of video device contains hardware that converts an
arbitrary pixel value stored in the frame buffer to some actual ROB video value, which is
changeable.
Color Manager: The part of the Toolbox that supplies color-selection support for Color
QuickDraw on the Macintosh n.
Color QuickDraw: The part of the Toolbox that performs color graphics operations on the
Macintosh n.
color table animation: Color table animation involves changing the index entries in the video
device's color table to achieve a change in color, as opposed to changing the pixel vaJ.ues
themselves. All pixel values corresponding to the altered index entries suddenly appear on the
display device in the new color.
color table: A set of colors is grouped into a QuickDraw data suucture called a color table.
Applications can pass a handle to this color table in order to use color entries.
command phase: The phase in which the SCSI initiator tells the target what operation to
perfonn.
compaction: The process of moving allocated blocks within a heap zone in order to collect the
free space into a single block.

complement: The numerical amount that must be added to a number to give the least number
containing one more digit
completion routine: Any application-defined code to be executed when an asynchronous call to
a routine is completed.
content region: The area of a window that the application draws in.
control: An object in a window on the Macintosh screen with which the user, using the mouse,
can cause instant action with visible results or change settings to modify a future action.
Control Manager: The partofthe Toolbox that provides routines for creating and manipulating
controls (such as buttons, check boxes, and scroll bars).
control definition function: A function called by the Control Manager when it needs to perfonn
type-dependent operations on a particular type of control, such as drawing the control.
control dermition ID: A number passed to control-creation routines to indicate the type of
control. It consists of the control definition function's resource ID and a variation code.

94 Glossary
Glossary

control information: lnfonnation transmitted by an application to a device driver. It may select


modes of operation, start or stop processes, enable buffers, choose protocols, and so on.
control list: A list of all the controls associated with a given window.
control record: The internal representation of a control, where the Control Manager stores all the
information it needs for its operations on that control.
control routine: The part of a device driver's code that implements Device Manager Control and
KillIO calls.
control template: A resource that contains information from which the Control Manager can
create a control.
coordinate plane: A two-dimensional grid. In QuickDraw, the grid coordinates are integers
ranging from -32767 to 32767, and all grid lines are infinitely thin.
current heap zone: The heap zone currently under attention, to which most Memory Manager
operations implicitly apply.
current resource file: The last resource file opened, unless you specify otherwise with a
Resource Manager routine.
cursor: A 16-by-16 bit image that appears on the screen and is controlled by the mouse; called the
"pointer" in Macintosh user manuals.
cursor level: A value, initialized by InitCursor, that keeps track of the number of times the cursor
has been hidden.
data bits: Data communications bits that encode transmitted characters.
data buffer: Heap space containing information to be written to a file or device driver from an
application, or read from a file or device driver to an application.
data fork: The part of a file that contains data accessed via the Ftle Manager.
data mark: In a sector, infonnation that primarily contains data from an application.
data phase: The phase in which the actual transfer of data between an SCSI initiator and target
takes place.
Datagram Delivery Protocol (DDP): An AppleTalk protocol that's an ALAP client, managing
socket-to-socket delivery of datagrams over AppleTalk intemets.
datagram: A packet of data transmitted by DDP.
date/time record: An alternate representation of the date and time (which is stored on the clock
chip in seconds since midnight, January l, 1904).
DDP: See Datagram Delivery Protocol
declaration ROM: A ROM on a NuBus slot card that contains infonnation about the card and
may also contain code or other data.

Glossary 95
Inside Macintosh X-Ref

default button: In an alert box or modal dialog, the button whose effect will occur if the user
presses Return or Enter. In an alert box, it's boldly outlined; in a modal dialog, it's boldly outlined
or the OK button.
default directory: A directory that will be used in Flle Manager routines whenever no other
directory is specified. It may be the root directory, in which case the default directory is equivalent
to the default volume.
default volume: A volume that will receive 1/0 during a File Manager routine call, whenever no
other volume is specified.
deny modes: Ftle access modes that include both the access rights of that path and denial of
access to others.
dereference: To refer to a block by its master pointer instead of its handle.
descent: The vertical distance from a font's base line to its descent line.
descent line: A horizontal line that coincides with the bottoms of the characters in a font that
extend funhest below the base line.
Desk Manager: The part of the Toolbox that supports the use of desk accessories from an
application.
desk accessory: A "mini-application", implemented as a device driver, that can be run at the
same time as a Macintosh application.
desk scrap: The place where data is stored when it's cut (or copied) and pasted among
applications and desk accessories.
desktop: The screen as a surface for doing work on the Macintosh.
Desktop tile: A resource file in which the Finder stores the version data, bundle, icons, and file
references for each application on the volume.
destination rectangle: In TextEdit, the rectangle in which the text is drawn.
device: A part of the Macintosh, or a piece of external equipment, that can transfer infonnation
into or out of the Macintosh.
device address: A value in the range $00-$0F assigned to each device connected to the Apple
DeskTop Bus.
device control entry: A 40-byte relocatable block of heap space that tells the Device Manager the
location of a driver's routines, the location of a driver's 1/0 queue, and other information.
device driver event: An event generated by one of the Macintosh's device drivers.
device driver: A program that controls the exchange of infolDlation between an application and a
device.
device handler ID: A value that identifies the kind of device connected to the Apple DeskTop
Bus.

96 Glossary
Glossary

DeviceList: A linked list containing the gDevice records for a system. One handle to a gDevice
record is allocated and initialized for each video card found by the system.
Device Manager: The part of the Operating System that supports device 1/0.
device partition map: A data structure that must be placed at the start of physical block 1 of an
SCSI device to enable it to perfonn Macintosh system startup. It describes the allocation of blocks
on the device.
device resource rde: An extension of the printer resource file, this file contains all the resources
needed by the Chooser for operating a particular device (including the device driver code).
dial: A control with a moving indicator that displays a quantitative setting or value. Depending on
the type of dial, the user may be able to change the setting by dragging the indicator with the mouse.
dialog: Same as dialog box.
dialog box: A box that a Macintosh application displays to request infonnation it.needs to
complete a colllllland, or to report that it's waiting for a process to complete.
Dialog Manager: 1be part of the Toolbox that provides routines for implementing dialogs and
alerts.
dialog record: The intemal representation of a dialog, where the Dialog Manager stores all .the
infonnation it needs for its operations on that dialog.
dialog template: A resowce that oontains infonnation from which the Dialog Manager can create
a dialog.
dialog window: The window in which a dialog box is displayed.
dimmed: Drawn in gray rather than black
direct device: A video device that ha$ a direct correlati()n between the value placed in the video
card and the color you see on the screen.
directory ID: A unique n\Ullbcr assigned to a directory, which the Flle Manager uses to
distinguish it from other directories on the volume. (It's functionally equivalent to the file number
assigned to a file; in fact, both directory IDs and file numbers are assigned from the same set of
numbers.)
directory: A subdivision of a volume that can contain files as well as other directories; equivalent
to a folder.

disabled: A disabled menu item or menu is one that cannot be chosen; the menu item or menu title
appears dimmed. A diS.abled iteQl Qi a dialog or alert box has no effect when clicked.
Disk Driv~r: The device driver that controls data storage ~d retrieval on 3 1/2-inch disks.
Disk Initialization Package: A Macintosh package for initializing and naming new disks; called
by the Standard Ftle Package.
disk-Inserted event: An event generated when the user inserts a disk in a disk drive or takes any
other action that requires a volume to be mounted.

Glossary 97
Inside MacintoshX-Ref

display rectangle: A rectangle that determines where an item is displayed within a dialog or alert
box.
dithering: A technique for mixing existing colors together to create the illusion of a third color
that may be unavailable on a particular device.
document window: The standard Macintosh window for presenting a document
double-click time: The greatest interval between a mouse-up and mouse-down event that would
qualify two mouse clicks as a double-click.
draft printing: Printing a document immediately as it's drawn in the printing grafPort.
drag delay: A length of time that allows a user to drag diagonally aero~ a main menu, moving
from a submenu title into the submenu itself without the submenu disappearing.
drag region: A region in a window frame. Dragging inside this region moves the window to a
new location and makes it the active window unless the Command key was down.
drive number: A number used to identify a disk drive. The internal drive is number l, the
external drive is number 2, and any additional drives will have larger numbers.
drive queue: A list of disk drives connected to the Macintosh.
drive queue: A list of disk drives connected to the Macintosh.
driver descriptor map: A data structure that must be placed at the start of physical block 0 of an
SCSI device to enable it to perfonn Macintosh system startup. It identifies the various device drivers
on the device.
driver VO queue: A queue containing the parameter blocks of all 1/0 requests for one device
driver.
driver name: A sequence of up to 255 printing characters used to refer to an open device driver.
Driver names always begin with a period (.).
driver reference number: A number from -1 to -32 that uniquely identifies an individual device
driver.
Echo Protocol: An echoing service provided on static socket number 4 (the echoer socket) by
which any correctly-fonned packet will be echoed back to its sender.
edit record: A complete editing environment in TextEdit, which includes the text to be edited, the
grafPort and rectangle in which to display the text, the arrangement of the text within the rectangle,
and other editing and display infonnation.

empty handle: A handle that points to a NIL master pointer, signifying that the underlying
relocatable block has been purged.
empty shape: A shape that contains no bits, such as one defined by only a single point.
end-of-file: See logical end-of-file or physical end-of-file.
entity name: An identifier for an entity, of the fonn object:type@zone.

98 Glossary
Glossary

event: A notification to an application of some occurrence that the application may want to
respond to.
event code: An integer representing a particular type of event
Event Manager: See Toolbox Event Manager or Operating System Event Manager.
event mask: A parameter passed to an Event Manager routine to specify which types of events the
routine should apply to.
event message: A field of an event record containing infonnation specific to the particular type of
event
event queue: The Operating System Event Manager's list of pending events.
event record: 1be internal representation of an event, through which your program learns all
pertinent infonnation about that event.
exactly-once transaction: An ATP transaction in which the requested operation is perfonned
only once.
exception: An error or abnonnal condition detected by the processor in the course of program
execution; includes interrupts and traps.
exception vector: One of 64 vectors in low memory that point to the routines that are to get
control in the event of an exception.
extent: A series of contiguous allocation blocks.
extent descriptor: A description of an extent, consisting of the number of the first allocation
block of the extent followed by the length of the extent in blocks.
extent record: A data record, stored in the leaf nodes of the extents tree file, that contains three
extent descriptors and a key identifying the record.
extents tree file: A file that contains the locations of the files on a volume.
external reference: A reference to a routine or variable defined in a separate compilation or
assembly.
family record: A data structure, derived from a family resource, that contains all the infonnation
describing a font family. ·
tile: A named, ordered sequence of bytes; a principal means by which data is stored and
transmitted on the Macintosh.
file catalog: A hierarchical file directory.
file control block: A fixed-length data strucrure, contained in the file-control-block buffer, where
infonnation about an access path is stored.
file directory: The part of a volume that contains descriptions and locations of all the files and
directories on the volume. There are two types of file directories: hierarchical file directories and flat
file directories.

Glossary 99
Inside Macintosh X-Ref

file VO queue: A queue containing parameter blocks for all J/0 requests to the File Manager.
File Manager: The part of the Operating System that supports file J/O.
file name: A sequence of up to 255 printing characters, excluding colons (:), that identifies a file.
file number: A unique number assigned to a file, which the File Manager uses to distinguish it
from other files on the volume. A me number specifies the file's entry in a file directory.
file reference: A resource that provides the Fmder with file and icon infonnation about an
application
file tags: Information associated with each logical block, designed to allow reconsnuction of files
on a volume whose directory or other file-access infonnation has been destroyed.
file tags bufTer: A location in memory where file tags are read from and written to.
file type: A four-character sequence, specified when a file is created, that identifies the type of
file.
file-control-block bufTer: A nonrelocatable block in the system heap that contains one file
control block for each access path.
Finder Information: Information that the Finder provides to an application upon starting it up,
telling it which documents to open or print.
fixed device: A video device that converts a pixel value to some actual RGB video value, but the
hardware colors can't be changed.
fixed-point number: A signed 32-bit quantity containing an integer pan in the high-order word
and a fractional part in the low-order word.
fixed-width font: A font whose characters all have the same width.
Floating-Point Arithmetic Package: A Macintosh package that supports extended-precision
arithmetic according to IEEE Standard 754.
font: A complete set of characters of one typeface, which may be restricted to a particular size and
style, or may comprise multiple sizes, or multiple sizes and styles, as in the context of menus.
font characteri7.ation table: A table of parameters in a device driver that specifies how best to
adapt fonts to that device.
font family: A group of fonts of one basic design but with variations like weight and slant
font height: The vertical distance from a font's ascent line to its descent line.
Font Manager: The part of the Toolbox that supports the use of various character fonts for
QuickDraw when it draws text
font number: The number by which you identify a font to QuickDraw or the Font Manager.
font record: A data structure, derived from a font resource, that contains all the infonnation
describing a font

100 Glossary
Glossary

font rectangle: The smallest rectangle enclosing all the character images in a font, if the images
were all superimposed over the same character origin.
font script: The script used by the font currently designated by thePort; hence the system that
detennines in what fonn text characters are displayed to the user.
font size: The size of a font in points; equivalent to the distance between the ascent line of one line
of text and the ascent line of the next line of single-spaced text
for~: One of the two parts of a file; see data fork and resource fork
format block: A structure in a declaration ROM that provides a standard entry point for other
structures in the ROM. ·
four-tone record: A data structure describing the tones produced by a four-tone synthesizer.
four-tone synthesizer: The part of the Sound Driver used to make simple hannonic tones, with
up to four "voices" producing sound simultaneously.
frame: The time elapsed from the start bit to the last stop bit during serial communication.
frame butTer: A buffer memory in which is stored all the picture elements (pixels) of a frame of
video infonnation.
Frame Buffer Controller (FBC): A register-controlled CMOS gate array used to generate and
control video data and timing signals.
frame check sequence: A 16-bit value generated by the AppleTalk hardware, used by the
receiving node to detect transmission errors.
frame header: Infomiation at the beginning of a packet.
frame pointer: A pointer to the end of the local variables within a routine's stack frame, held in
an address register and manipulated with the LINK and UNLK instructions.
frame trailer: Infonnation at the end of an ALAP frame.
framed shape: A shape that's drawn outlined and hollow.
framing error: The condition resulting when a device doesn't receive a stop bit when expected.
free block: A memory block containing space available for allocation.
free-form synthesizer: The part of the Sound Driver used to make complex music and speech.
frequency: The number of cycles per second (also called hertz) at which a wave oscillates.
full pathname: A pathname beginning from the root directory.
full-duplex communication: A method of data transmission where two devices transmit data
simultaneously.
gamma table: A table that compensates for nonlinearities in a monitor's color response.

Glossary 101
Inside MacintoshX-Ref

gDevice: A QuickDraw data structure that allows an application to access a given device. A
gDevice is a logical device, which the software treats the same whether it is a video card, a display
device, or an offscreen pixel map.
global coordinate system: The coordinate system based on the top left comer of the bit image
being at (0,0).
global width table: A data structure in the system heap used by the Font Manager to
communicate fractional .character widths to QuickDraw.
go-away region: A region in a window frame. Clicking inside this region of the active window
makes the window close or disappear.
grafPort: A complete drawing environment, including such elements as a bit map, a subset of it in
which to draw, a character font, patterns for drawing and erasing, and other pen characteristics.
graphics device: A video card, a printer, a display device, or an offscreen pixel ~ap. Any of
these device types may be used with Color QuickDraw.
GrayRgn: The global variable that in the multiple screen desktop describes and defines the
desktop, the area on which windows can. be dragged.
grow image: The image pulled around when the user drags inside the grow region; whatever is
appropriate to show that the window's size will change.
grow region: A window region, usually within the content region, where dragging changes the
size of an active window.
grow zone function: A function supplied by the application program to help the Memory
Manager create free space within a heap zone.
handle: A pointer to a master pointer, which designates a relocatable block in the heap by double
indirection.
hardware overrun error: The condition that occurs when the SCC's buffer becomes full.
heap: The area of memory in which space is dynamically allocated and released on demand, using
the Memory Manager.
heap zone: An area of memory initialized by the Memory Manager for heap allocation.
hierarchical menu: A menu that includes, among its various menu choices, the ability to display
a submenu. In most cases the submenu appears to the right of the menu item used to select it, and is
marked with a filled triangle indicator.
highlight: To display an object on the screen in a distinctive visual way, such as inverting it
horizontal blanking interval: The time between the display of the righbnost pixel on one line
and the leftmost pixel on the next line.
hotSpot: The point in a cursor that's aligned with the mouse location.
VO queue: See driver VO queue or file VO queue-

102 Glossary
Glossary

VO request: A request for input from or output to a file or device driver; caused by calling a File
Manager or Device Manager routine asynchronously.
icon: A 32-by-32 bit image that graphically represents an object, concept, or message.
icon list: A resource consisting of a list of icons.
icon number: A digit from 1 to 255 to which the Menu Manager adds 256 to get the resource ID
of an icon associated with a menu item.
image width: The width of a character image.
inactive control: A control that won't respond to the user's actions with the mouse. An inactive
control is highlighted in some special way, such as dimmed.
inactive window: Any window that isn't the fronnnost window on the desktop.
indicator: The moving part of a dial that displays its current setting.
initiator device: An SCSI device that initiates a communication by asking another device
(known as the target device) to perfonn a certain operation.
input driver: A device driver that receives serial data via a serial port and transfers it to an
application.
insertion point: An empty selection range; the character position where text will be inserted
(usually marked with a blinking caret).

interface routine: A routine called from Pascal whose purpose is to trap to a certain Toolbox or
Operating System routine.
International Utilities Package: A Macintosh package that gives you access to country-
dependent infonnation such as the fonnats for numbers, currency, dates, and times.
internet: An interconnected group of AppleTalk networks.
internet address: The AppleTalk address and network number of a socket.
interrupt: An exception that's signaled to the processor by a device, to notify the processor of a
change in condition of the device, such as the completion of an 1/0 request
interrupt handler: A routine that services interrupts.
interrupt priority level: A number identifying the importance of the interrupt It indicates which
device is interrupting, and which interrupt handler should be executed.
interrupt vector: A pointer to an interrupt handler.
invalidation: When a color table is modified, its inverse table must be rebuilt, and the screen
should be redrawn to take advantage of this new infonnation. Rather than being reconsbUcted when
the color table is changed, the inverse table is marked invalid, and is automatically rebuilt when next
accessed.
inverse table: A special Color Manager data structure arranged in such a manner that, given an
arbitrary RGB color, the pixel value can be very rapidly looked up.

Glossary 103
Inside Macintosh X-Ref

invert: To highlight by changing white pixels to black and vice versa.


invisible control:· A control that's not drawn in its window.
invisible window: A window that's not drawn in its plane on the desktop.
item: In dialog and alert boxes, a control, icon, picture, or piece of text, each displayed inside its
own display rectangle. See also menu item
item list: A list of infonnation about all the items in a dialog or alert box.
itemnumber: The index, starting from 1, of an item in an item list
IWM: "Integrated Woz Machine"; the custom chip that controls the 3 1/2-inch disk drives.
job dialog: A dialog that sets infonnation about one printing job; associated with the Print
command.
journal code: A code passed by a Toolbox Event Manager routine in its Control call to the
journaling device driver, to designate which routine is making the Control call.
journaling mechanism: A mechanism that allows you to feed the Toolbox Event Manager events
from some source other than the user.
jump table: A table that contains one entry for every routine in an application and is the means by
which the loading and unloading of segments is implemented.
justification: The horizontal placement of lines of text relative to the edges of the rectangle in
which the text is drawn.
justification gap: The number of pixels that must be added to a line of text to make it exactly fill
a given measure. Also called slop.
kem: To draw part of a character so that it overlaps an adjacent character.
key code: An integer representing a key on the keyboard or keypad, without reference to the
character that the key stands for.
key script: The system that detennines the keyboard layout and input method for the user
interface. It may be different from the font script, which detennines how text is displayed.
key-down event: An event generated ~hen the user presses a character key on the keyboard or
keypad.
key-up event: An event generated when the user releases a character key on the keyboard or
keypad.
keyboard configuration: A resource that defines a particular keyboard layout by associating a
character code with each key or combination of keys on the keyboard or keypad.
keyboard equivalent: The combination of the Command key and another key, used to invoke a
menu item from the keyboard.
keyboard event: An event generated when the user presses, releases, or holds down a character
key on the keyboard or keypad; any key-down, key-up, or auto-key event.

104 Glossary
Glossary

leading: 1be amount of blank vertical space between the descent line of one line of text and the
ascent line of the next line of single-spaced text
ligature: A character that combines two letters.
line-height table: A TextEdit data structure that holds vertical spacing infotmation for an edit
record's text.
List Manager: The part of the Operating System that provides routines for creating, displaying,
and manipulating lists.
list definition procedure: A procedure called by the List Manager that detennines the
appearance and behavior of a list.
list element: The basic component of a list from a logical point of view, a list element is simply
bytes of data. In a list of names, for instance, the name Melvin might be a list element
list record: The internal representation of a list, where the List Manager stores all the infotmation
it requires for its operations on that list
list separator: The character that separates numbers, as when a list of numbers is entered by the
user.
local coordinate system: 1be coordinate system local to a grafPort, imposed by the boundary
rectangle defined in its bit map.
local ID: A number that refers to an icon list or file reference in an application's resource file and
is mapped to an actual resource ID by a bundle.

localization: The process of adapting an application to different languages, including converting


its user interface to a different script
location table: An array of words (one for each character in a font) that specifies the location of
each character's image in the font's bit image.
lock: To temporarily prevent a relocatable block from being moved during heap compaction.
lock bit: A bit in the master pointer to a relocatable block that indicates whether the block is
currently locked.
locked file: A file whose data cannot be changed.
locked volume: A volume whose data cannot be changed. Volumes can be locked by either a
software flag or a mechanical setting.
logical block: Volume space composed of 512 consecutive bytes of standard infotmation and an
additional number of bytes of infotmation specific to the Disk Driver.
logical end-of-file: The position of one byte past the last byte in a file; equal to the actual
number of bytes in the file.
logical size: The number of bytes in a memory block's contents.
luminance: The intensity of light Two colors with different luminances will be displayed at
different intensities.

Glossary 105
Inside Macintosh X-Ref

Mi.D.I. synthesizer: This synthesizer interfaces with extemal synthesizers via a Musical
Instrument Data Interface (M.I.D.I.) adaptor connected to the serial ports.
magnitude: 1be vertical distance between any given point on a wave and the horizontal line about
which the wave oscillates.
main event loop: In a standard Macintosh application program, a loop that repeatedly calls the
Toolbox Event Manager to get events and then responds to them as appropriate.
main screen: On a system with multiple display devices, the screen with the menu bar is called
the main screen.
main segment: The segment containing the main program.
mark state: The state of a transmission line indicating a binary 1.
mark: A marker used by the File Manager to keep track of where it is during a read or write
operation. It is the position of the next byte in a file that will be read or written.
master directory block: Part of the data structure of a flat directory volume; contains the
volume infonnation and the volume allocation block map.
master pointer: A single pointer to a relocatable block, maintained by the Memory Manager and
updated whenever the block is moved, purged, or reallocated. All handles to a relocatable block
refer to it by double indirection through the master pointer. ·
Memory Manager: The part of the Operating System that dynamically allocates and releases
memory space in the heap.
memory block: An area of contiguous memory within a heap zone.
menu: A list of menu items that appears when the user points to a menu title in the menu bar and
presses the mouse button. Dragging through the menu and releasing over an enabled menu item
chooses that item.
menu bar: The horizontal strip at the top of the Macintosh screen that contains the menu titles of
all menus in the menu list

menu definition procedure: A procedure called by the Menu Manager when it needs to perfonn
type-dependent operations on a particular type of menu, such as drawing the menu.
menu entry: An entry in a menu color table that defines color values for the menu's title, bar, and
items.
menu ID: A number in the menu record that identifies the menu.
menu item: A choice in a menu, usually a command to the current application.
menu item number: The index, starting from l, of a menu item in a menu.
menu list: A list containing menu handles for all menus in the menu bar, along with infonnation
on the position of each menu.
Menu Manager: The part of the Toolbox that deals with setting up menus and letting the user
choose from them.

106 Glossary
Glossary

menu record: 1be internal representation of a menu, where the Menu Manag~r stores all the
infoimation it needs for its operations on that menu.
menu title: A word or phrase in the menu bar that designates one menu.
message phase: The phase in which the target sends one byte of message infoimation back to the
initiator.
missing symbol: A character to be drawn in case of a request to draw a character that's missing
from a particular font

modal dialog: A dialog that requires the user to respond before doing any other work on the
desktop.
modeless dialog: A dialog that allows the user to work elsewhere on the desktop before
responding.
modifier: A program that interprets and processes Sound Manager commands as they pass
through a channel
modifier key: A key (Shift, Caps Lock, Option, or Command) that generates no keyboard events
of its own, but changes the meaning of other keys or mouse actions.
mounted volume: A volume that previously was inserted into a disk drive and had descriptive
infoimation read from it by the File Manager.
mouse-down event: An event generated when the user presses the mouse button.
mouse scaling: A feature that causes the cursor to move twice as far during a mouse stroke than
it would have otherwise, provided the change in the cursor's position exceeds the mouse-scaling
threshold within one tick after the mouse is moved.
mouse-scaling threshold: A number of pixels which, if exceeded by the sum of the horizontal
and vertical changes in the cursor position during one tick of mouse movement, causes mouse
scaling to occur (if that feature is turned on); noimally six pixels.
mouse-up .event: An event generated when the user releases the mouse button.
Name-Binding Protocol (NBP): An AppleTalk protocol that's a DDP client, used to convert
entity names to their internet socket addresses.
name lookup: An NBP operation that allows clients to obtain the internet addresses of entities
from their names.
names directory: The union of all name tables in an internet.
names information socket: The socket in a node used to implement NBP (always socket
number2).
names table: A list of each entity's name and internet address in a node.
NBP tuple: An entity name and an internet address.
NBP: See Name-Binding Protocol

Glossary I 07
Inside MacintoshX-Ref

network event: An event generated by the AppleTalk Manager.


network number: An identifier for an AppleTalk network.
network-visible entity: A named socket client on an internet.
newline character: Any character, but usually Return (ASCII code $00), that indicates the end
of a sequence of bytes.
newline mode: A mode of reading data where the end of the data is indicated by a newline
character (and not by a specific byte count).
node ID: A number, dynamically assigned, that identifies a node.
node: A device that's attached to and communicates via an AppleTalk network.
nonbreaking space: 1be character with ASCII code $CA; drawn as a space the same width as a
digit, but interpreted as a nonblank character for the purposes of word wraparound and selection.
nonrelocatable block: A block whose location in the heap is fixed and can't be moved during
heap compaction.
note synthesizer: Functionally equivalent to the old square-wave synthesizer, the note
sysntesizer lets you generate simple melodies and infonnative sounds such as error warnings.
null event: An event reported when there are no other events to report.
null-style record: A TextF.dit data sttucture used to store the style infonnation for a null
selection.
off-line volume: A mounted volume with all but the volume control block released.
offset/width table: An array of words that specifies the character offsets and character widths of
all characters in a font

offspring: For a given directory, the set of files and directories for which it is the parent.
on-line volume: A mounted volume with its volume buffer and descriptive infonnation
contained in memory.
open driver: A driver that can be read from and written to.
open tile: A file with an access path. Open files can be read from and written to.
open permission: Information about a file that indicates whether the file can be read from,
written to, or both.
open routine: The part of a device driver's code that implements Device Manager Open calls.
Operating System: The lowest-level software in the Macintosh. It does basic tasks such as UO,
memory management, and interrupt handling.
Operating System Event Manager: 1be part of the Operating System that reports hardware-
related events such as mouse-button presses and keystrokes.

108 Glossary
Glossary

Operating System Utilities: Operating System routines that perfonn miscellaneous tasks such
as getting the date and time, finding out the user's preferred speaker volume and other preferences,
and doing simple string comparison.

output driver: A device driver that receives data via a serial port and transfers it to an application.
overrun error: See hardware overrun error and software overrun error.
Package Manager: The part of the Toolbox that lets you access Macintosh RAM-based
packages.

package: A set of routines and data types that's stored as a resource and brought into memory
only when needed. ·

page rectangle: The rectangle marking the boundaries of a printed page image. The boundary
rectangle, portRect, and clipRgn of the printing grafPort are set to this rectangle.
palette: A collection of small symbols, usually enclosed in rectangles, that represent operations
that can be selected by the user. Also, a collection of colors provided and used by your application
according to your needs.
Palette Manager: The part of the Toolbox that establishes and monitors the color environment of
the Macintosh II. It gives preference to the color needs of the front window, making the assumption
that the front window is of greatest interest to the user.
pane: An independently scrollable area of a window, for showing a different part of the same
document
panel: An area of a window that shows a different interpretation of the same part of a document
paper rectangle: The rectangle marldng the boundaries of the physical sheet of paper on which a
page is printed.
parameter block: A data stnlcture used to ttansfer infonnation between applications and certain
Operating System routines.
parameter RAM: In the clock chip, 20 bYtes where settings such as those made with the Control
Panel desk accessory are preserved.
parent: For a given file or directory, the directory immediately above it in the tree.
parent ID: The directory ID of the directory containing a file or directory.
parity bit: A data communications bit used to verify that data bits received by a device match the
data bits transmitted by another device.
parity error: 1be condition resulting when the parity bit received by a device isn't what was
expected.
part code: An integer between 1 and 253 that stands for a particular part of a control (possibly the
entire control).
partial pathname: A pathname beginning from any directory other than the root directory.

Glossary 109
Inside Macintosh X-Ref

path reference number: A number that uniquely identifies an individual access path; assigned
when the access path is created.
pathname: A series of concatenated directory and file names that identifies a given file or
directory. See also partial pathnameand full pathname.
pattern: An 8-by-8 bit image, used to define a repeating design (such as stripes) or tone (such as
gray).
pattern transfer mode: One of eight transfer modes for drawing lines or shapes with a pattern.
period: 1be time elapsed during one complete cycle of a wave.
phase: Some fraction of a wave cycle (measured from a fixed point on the wave).
physical end-of-file: The position of one byte past the last allocation block of a file; equal to 1
more than the maximum number of bytes the file can contain.
physical size: The actual number of bytes a memory block occupies within its heap zone.
picture: A saved sequence of QuickDraw drawing commands (and, optionally, picture comments)
that you can play back later with a single procedure call; also, the image resulting from these
commands.
picture comments: Data stored in the definition of a picture that doesn't affect the picture's
appearance but may be used to provide additional infonnation about the picture when it's played
back.
picture frame: A rectangle, defined as part of a picture, that surrounds the picture and gives a
frame of reference for scaling when the picture is played back.
PIO (programmed input/output): An interfacing technique where the processor directly
accesses registers assigned to 1/0 devices by executing processor instructions. Memory mapped 1/0
port registers are addressed as memory locations.
pixel: A dot on a display screen. Pixel is short for picture element.
pixel map: Color QuickDraw's extended data structure, containing the dimensions and content of
a pixel image, plus infonnation on the image's storage fonnat, depth, resolution, and color usage.
pixel pattern: The pattern structure used by Color QuickDraw, one of three types: old-style
pattern, full color pixel pattern, or ROB pattern.
pixel value: The bits in a pixel, taken together, fonn a number known as the pixel value. Color
QuickDraw represents each pixel on the screen using one, two, four, or eight bits in memory.
plane: The front-to-back position of a window on the desktop.
point: The intersection of a horizontal grid line and a vertical grid line on the coordinate plane,
defined by a horizontal and a vertical coordinate; also, a typographical tenn meaning approximately
1n2 inch.

polygon: A sequence of connected lines, defined by QuickDraw line-drawing commands.

110 Glossary
Glossary

pop-up menu: A menu not located in the menu bar, which appears when the user presses the
mouse button in a particular place.
port: See grafPort
portBits: The bit map of a grafPort.
portRect: A rectangle, defined as part of a gratPort, that encloses a subset of the bit map for use
by the grafPort.
post: To place an event in the event queue for later processing.
prime routine: The part of a device driver's code that implements Device Manager Read and
Write calls.
print record: A record containing all the infonnation needed by the Printing Manager to perfonn a
particular printing job.
Printer Driver: The device driver for the currently installed printer.
printer resource file: A file containing all the resources needed to run the Printing Manager with
a particular printer.
Printing Manager: The routines and data types that enable applications to communicate with the
Printer Driver to print on any variety of printer via the same interface.
printing grafPort: A special grafPort customi7.ed for printing instead of drawing on the screen.
processor priority: Bits 8-10 of the MC68000's status register, indicating which interrupts will
be processed and which will be ignored.

proportional font: A font whose characters all have character widths that are proportional to their
image width.
protocol: A well-defined set of communications rules.
protocol handler table: A list of the protocol handlers for a node.
protocol handler: A software process in a node that recognizes different kinds of frames by their
ALAP type and services them.
purge: To remove a relocatable block from the heap, leaving its master pointer allocated but set to
NIL.

purge bit: A bit in the master pointer to a relocatable block that indicates whether the block is
currently purgeable.
purge warning procedure: A procedure associated with a particular heap zone that's called
whenever a block is purged from that zone.
purgeable block: A relocatable block that can be purged from the heap.
queue: A list of identically structured entries linked together by pointers.

Glossary 111
Inside MacintoshX-Ref

QuickDraw: The part of the Toolbox that perfonns all graphic operations on the Macintosh
screen.
radio button: A standard Macintosh control that displays a setting, either on or off, and is part of
a group in which only one button can be on at a time.
RAM: The Macintosh's random access memory, which contains exception vectors, buffers used
by hardware devices, the system and application heaps, the stack, and other infonnation used by
applications.
range locking: Locking a range of bytes in a file so that other users can't read from or write to
that range, but allowing the rest of the file to be accessed. ·
raw key codes: Hardware-produced key codes on the Macintosh II and Apple Extended
Keyboard, which are translated into virtual key codes by the 'KMAP' resource.
read/write permission: Infonnation associated with an access path that indicates whether the file
can be read from, written to, both read from and written to, or whatever the file's open pennission
allows.
reallocate: To allocate new space in the heap for a purged block, updating its master pointer to
point to its new location.
reference number: A number greater than 0, returned by the Resource Manager when a resource
file is opened, by which you can refer to that file. In Resource Manager routines that expect a
reference number, 0 represents the system resource file.
reference value: In a window record or control record, a 32-bit field that an application program
may store into and access for any purpose.
region: An arbitrary area or set of areas on the QuickDraw coordinate plane. The outline of a
region should be one or more closed loops.
register-based routine: A Toolbox or Operating System routine that receives its parameters and
returns its results, if any, in registers.
relative handle: A handle to a relocatable block expressed as the offset of its master pointer
within the heap zone, rather than as the absolute memory address of the master pointer.

release: To free an allocated area of memory, making it available for reuse.


release timer: A timer for detennining when an exactly-once response buffer can be released.
relocatable block: A block that can be moved within the heap during compaction.
reselection phase: An optional phase in which the SCSI initiator allows a target device to
reconnect itself to the initiator.
resource: Data or code stored in a resource file and managed by the Resource Manager.
resource attribute: One of several characteristics, specified by bits in a resource reference, that
detennine how the resource should be dealt with.
resource data: In a resource file, the data that comprises a resource.

112 Glossary
Glossary

resource tile: The resource folk of a file.


resource fork: The part of a file that contains data used by an application (such as menus, fonts,
and icons). The resource fork of an application file also contains the application code itself.
resource header: At the beginning of a resource file, data that gives the offsets to and lengths of
the resource data and resource map.
resource ID: A number that, together with the resource type, identifies a resource in a resource
file. Every resource has an ID number.
Resource Manager: The part of the Toolbox that reads and writes resources.
resource map: In a resource file, data that is read into memory when the file is opened and that,
given a resource specification, leads to the corresponding resource data.
resource name: A string that, together with the resource type, identifies a resource in a resource
file. A resource may or may not have a name.
resource reference: In a resource map, an entry that identifies a resource and contains either an
offset to its resource data in the resource file or a handle to the data if it's already been read into
memory.
resource specification: A resource type and either a resource ID or a resource name.
resource type: The type of a resource in a resource file, designated by a sequence of four
characters (such as 'MENU' for a menu).
response DDS: A data structure used to pass response infonnation to the ATP module.
result code: An integer indicating whether a routine completed its task successfully or was
prevented by some error condition (or other special condition, such as reaching the end of a file).
resume procedure: A procedure within an application that allows the application to recover from
system errors.
retry count: The maximum number of retransmissions for an NBP or ATP packet
retry Interval: The time between retransmissions of a packet by NBP or ATP.
RGB space: How Color QuickDraw represents colors. Each color has a red, a green, and a blue
component, hence the name RGB.
RGB value: Color QuickDraw represents color using the RGBColor record type, which specifies
the red, green, and blue components of the color. The RGBColor record is used by an application
specifies the colors it needs. The translation from the RGB value to the pixel value is perfonned at
the time the color is drawn.
ROM: The Macintosh's pennanent read-only memory, which contains the routines for the
Toolbox and Operating System, and the various system traps.
root directory: 1be directory at the base of a file catalog.
routine selector: A value pushed on the stack to select a particular routine from a group of
routines called by a single trap macro.

Glossary 113
Inside MacintoshX·Ref

Routing Table Maintenance Protocol (RTMP): An AppleTalk protocol that's used internally
by AppleTalk to maintain tables for routing datagrams through an internet
routing table: A table in a bridge that contains routing infonnation.
row width: The number of bytes in each row of a bit image.
RTMP: See Routing Table Maintenance Protocol
RTMP socket: The socket in a node used to implement RTMP.
RTMP stub: The RTMP code in a nonbridge node.
sampled sound synthesizer: Functionally equivalent to the old free-fonn synthesizer, the
sample sound synthesizer lets you play pre-recorded sounds or sounds generated by your
application.
scaling factor: A value, given as a fraction, that specifies the amount a character should be
stretched or shrunk before it's drawn.

SCC: See Serial CommunicationsController.


Scrap Manager: 1be part of the Toolbox that enables cutting and pasting between applications,
desk accessories, or an application and a desk accessory.
scrap: A place where cut or copied data is stored.
scrap file: The file containing the desk scrap (usually named "Qipboard File").
screen buffer: A block of memory from which the video display reads the infonnation to be
displayed. -

script: A writing system, such as Cyrillic or Arabic. This book is printed in Roman script.
script interface system: Special software that supports the display and manipulation of a
particular script.
SCSI: See Small Computer Standard Interface.
SCSI Manager: The part of thC Operating System that controls the exchange of infonnation
between a Macintosh and peripheral devices connected through the Small Computer Standanl
Interface (SCSI).
sector: Disk space composed of 512 consecutive bytes of standard infonnation and 12 bytes of
file tags.
segment: One of several parts into which the code of an application may be divided. Not all
segments need to be in memory at the same time.
Segment Loader: The part of the Operating System that loads the code of an application into
memory, either as a single unit or divided into dynamically loaded segments.
selection phase: The phase in which the initiator selects the target device that will be asked to
perfonn a certain operation.

114 Glossary
Glossary

selection range: The series of characters (inversely highlighted), or the character position
(marked with a blinking caret), at which the next editing operation will occur.
sequence number: A number from 0 to 7, assigned to an ATP response datagram to indicate its
ordering within the response.
Serial Communications Controller (SCC): The chip that handles serial IJO through the
modem and printer ports.
Serial Driver: A device driver that controls communication, via serial ports, between applications
and serial peripheral devices.

serial data: Data communicated over a single-path communication line, one bit at a time.
sener: A node that manages access to a peripheral device.
service request enable: A bit set by a device connected to the Apple DeskTop Bus to tell the
system that it needs servicing.
session: A session consists of a series of transactions between two sockets, characterized by the
ordedy sequencing of requests and responses. ·
signature: A four-character sequence that uniquely identifies an application to the Finder.
slop: See justification gap.
slot exec parameter block: A data sttucture that provides communication with the Slot
Manager routines sMacBoot and sPrimarylnit
Slot Manager: A set of Macintosh II ROM routines that let applications access declaration ROMs
on slot cards.
slot parameter block: A data structure that provides communication with all Slot Manager
routines except sMacBoot and sPrimarylnit
slot resource: A software sttucture in the declaration ROM of a slot canl.
slot space:The upper one sixteenthofthe total address space. These addresses are in the fonn
$Fsxx xxxx where F, s, and x are hex digits of 4 bits each. This address space is geographically
divided among the NuBus slots according to slot ID number.
Small Computer Standard Interface (SCSI): A specification of mechanical, electrical, and
functional standards for comecting small computers with intelligent peripherals such as hard disks,
printers, and optical disks.
socket: A logical entity within the node of a network.
socket client: A software process in a node that owns a socket.
socket listener: The portion of a socket client that receives and services datagrams addressed to
that socket
socket number: An identifier for a socket.
socket table: A listing of all the socket listeners for each active socket in a node.

Glossary 115
Inside Macintosh X-Ref

software overrun error: The condition that occurs when an input driver's buffer becomes full.
solid shape: A shape that's filled in with any pattern.
Sound Driver: The device driver that controls sound generation in an application.
sound buffer: A block of memory from which the sound generator reads the infonnation to create
an audio wavefonn.
sound procedure: A procedure associated with an aleit that will emit one of up to four sounds
from the Macintosh's speaker. Its integer parameter ranges from 0 to 3 and specifies which sound.
source transfer mode: One of eight transfer modes for drawing text or transferring any bit image
between two bit maps.
space state: The state of a transmission line indicating a binary 0.
spool printing: Writing a representation of a document's printed image to disk or to memory, and
then printing it (as opposed to immediate draft printing).
square-wave synthesizer: The part of the Sound Driver used to produce less hannonic sounds
than the four-tone synthesizer, such as beeps.

sResource: See slot resource.


sResource directory: The structure in a declaration ROM that provides access to its sResource
lists.
sResource list: A list of offsets to sResources.
stack: The area of memory in which space is allocated and released in LIFO (last-in-first-out)
order.
stack frame: The area of the stack used by a routine for its parameters, return address, local
variables, and temporary storage.
stack-based routine: A Toolbox or Operating System routine that receives its parameters and
returns its results, if any, on the stack.
stage: Every alert has four stages, corresponding to consecutive occurrences of the alert, and a
different response may be specified for each stage.
Standard File Package: A Macintosh package for presenting the standard user interface when a
file is to be saved or opened
start bit: A serial data communications bit that signals that the next bits transmitted are data bits.
startup screen: When the system is started up, one of the display devices is selected as the
startup screen, the screen on which the "happy Macintosh" icon appears.
status information: Infonnation transmitted to an application by a device driver. It may indicate
the current mode of operation, the readiness of the device, the occurrence of errors, and so on.
status phase: The phase in which the SCSI target sends one byte of status infonnation back to
the initiator.

116 Glossary
Glossary

status routine: The part of a device driver's code that implements Device Manager Status calls.
stop bit: A serial data communications bit that signals the end of data bits.
structure region: An entire window; its complete "sttucture".
style: See character style.
style dialog: A dialog that sets options affecting the page dimensions; associated with the Page
Setup command.
style record: A TextEdit data structure that specifies the styles for the edit record's text
style scrap: A new TextEdit scrap type, 'styl', is used for storing style information in the desk
scrap along with the old 'TEXT scrap.
style table: A TextEdit data structure that contains one entry for each-distinct style used in an edit
record's text.
subdirectory: Any directory other than the root directory.
submenu delay: The length of time before a submenu appears as a user drags through a
hierarchical main menu; it prevents rapid flashing of submenus. ·
super slot space: The large portion of memory in the range $9000 0000 through $EFFF FFFF.
NuBus addresses of the fonn $sxxx xxxx (that is, $s000 0000 through $sFFF FFFF) reference
the super slot space that belongs to the card in slot s, wheres is an ID digit in the range $9 through
$E. -
synchronous execution: After calling a routine synchronously, an application cannot continue
execution until the routine is completed.
synthesizer: A program which, like a device driver, interprets Sound Manager commands and
produces sound. See tree-form, four-tone, or square-wave synthesizer.
synthesizer buffer: A description of the sound to be generated by a synthesizer.
System Error Handler: The part of the Operating System that assumes control when a fatal
system error occurs.
system error alert table: A resource that determines the appearance and function of system error
alens.
system error alert: An alert box displayed by the System Error Handler.
system error ID: An ID number that appears in a system error alert to identify the error.
system event mask: A global event mask that controls which types of events get posted into the
event queue.
system font: The font that the system uses (in menus, for example). Its name is Chicago.
system font size: The si:ze of text drawn by the system in the system font; 12 points.
system heap: The portion of the heap reserved for use by the Operating System.

Glossary 117
Inside MacintoshX-Re/

system heap zone: The heap zone provided by the Memory Manager for use by the Operating
System; equivalent to the system heap.
system resource: A resource in the system resource file.
system resource file: A resource file containing standard resources, accessed if a requested
resource wasn't found in any of the other resource files that were searched.
system startup information: Certain configurable system parameters that are stored in the first
two logical blocks of a volume and read in at system startup.
system window: A window in which a desk accessory is displayed.
target device: An SCSI device (typically an intelligent peripheral) that receives a request from an
initiator device to perfonn a certain operation.
text styles: TextEdit records used for communicating style infonnation between the application
program and the TextEdit routineS.
TextEdit: The part of the Toolbox that supports the basic text entry and editing capabilities of a
standard Macintosh application.

TextEdit scrap: The place where certain TextEdit routines store the characters most recently cut
or copied from text
theGDevice: When drawing is being perfonned on a device, a handle to that device is stored as a
global variable theG Device.
thousands separator: The character that separates every three digits to the left of the decimal
point.
thumb: The Control Manager's tenn for the scroll box (the indicator of a scroll bar).
tick: A sixtieth of a second.
Time Manager: The part of the Operating System that lets you schedule a routine to be executed
after a given number of milliseconds have elapsed.
Toolbox: Same as User Interface Toolbox.
Toolbox Event Manager: The part of the Toolbox that allows your application program to
monitor the user's actions with the mouse, keyboard, and keypad.
Toolbox Utilities: The part of the Toolbox that perfonns generally useful operations such as
fixed-point arithmetic, stting manipulation, and logical operations on bits.
track: Disk space composed of 8 to 12 consecutive sectors. A track corresponds to one ring of
constant radius around the disk.
transaction: A request-response communication between two ATP clients. See transaction
request and transaction response.
transaction ID: An identifier assigned to a transaction.

118 Glossary
Glossary

transaction request: The initial part of a transaction in which one socket client asks another to
perfo1m an operation and return a response.
transaction response: The concluding part of a transaction in which one socket client returns
requested infonnation or simply confinns that a requested operation was perfoimed.
Transcendental Functions Package: A Macintosh package that contains trigonometric,
logarithmic, exponential, and financial functions, as well as a random number generator.
transfer mode: A specification of which Boolean operation QuickDraw should perfoim when
drawing or when transferring a bit image from one bit map to another.
trap dispatch table: A table in RAM containing the addresses of all Toolbox and Operating
System routines in encoded foim.
trap dispatcher: The part of the Operating System that examines a trap word to detennine what
operation it stands for, looks up the address of the corresponding routine in the trap dispatch table,
and jumps to the routine.
trap macro: A macro that assembles into a trap word, used for calling a Toolbox or Operating
System routine from assembly language.
trap number: The identifying number of a Toolbox or Operating System routine; an index into the
trap dispatch table.

trap word: An unimplemented insttuction representing a call to a Toolbox or Operating System


routine.
type coercion: Many compilers feature type coercion (also known as typecasting), which allows
a data sbUcture of one type to be converted to another type. In many cases, this conversion is
simply a relaxation of type-checking in the compiler, allowing the substitution of a differently-typed
but equivalent data SbUcture.
unimplemented instruction: An instruction word that doesn't correspond to any valid machine-
language instruction but instead causes a trap.
unit number: The number of each device driver's entry in the unit table.
unit table: A 128-byte nonrelocatable block containing a handle to the device control entry for
each device driver.
unlock: To allow a relocatable block to be moved during heap compaction.
unmounted volume: A volume that hasn't been inserted into a disk drive and had descriptive
infoimation read from it, or a volume that previously was mounted and has since had the memory
used by it released.
unpurgeable block: A relocatable block that can't be purged from the heap.
update event: An event generated by the Window Manager when a window's contents need to be
redrawn.
update region: A window region consisting of all areas of the content region that have to be
redrawn.

Glossary 119
Inside MacintoshX-Ref

User Interface Toolbox: The software in the Macintosh ROM that helps you implement the
standard Macintosh user interface in your application.
user bytes: Four byteS in an ATP header provided for use by ATP's clients.
valence: The number of offspring for a given directory.
validity status: A number stored in parameter RAM designating whether the last attempt to write
there was successful. ('The number is $A8 if so.)
variation code: The part of a window or control definition ID that distinguishes closely related
types of windows or controls.
VBL task: A task perfonned during the vertical retrace intenupt.
vector table: A table of interrupt vectors in low memory.
Versatile Interface Adapter (VIA): The chip that handles most of the Macintosh's 1/0 and
interrupts.
version data: In an application's resource file, a resource that has the application's signature as its
resource type; typically a string that gives the name, version number, and date of the application.
version number: A number from 0 to 255 used to distinguish between files with the same name.
Vertical Retrace Manager: The part of the Operating System that schedules and executes tasks
during the vertical retrace interrupt
vertical blanking interrupt: See vertical retrace interrupt.
vertical blanking interval: The time between the display of the last pixel on the bottom line of
the screen and the first one on the top line.
vertical retrace interrupt: An interrupt generated 60 times a second by the Macintosh video
circuitry while the beam of the display tube returns from the bottom of the screen to the top; also
known as vertical blanking interrupt
vertical retrace queue: A list of the tasks to be executed during the vertical retrace interrupt.
VIA: See Versatile Interface Adapter.
view rectangle: In TextEdit, the rectangle in which the text is visible.
virtual key codes: The key codes that appear in keyboard events. (See also raw key codes.)
visible control: A control that's drawn in its window (but may be completely overlapped by
another window or other object on the screen).
visible window: A window that's drawn in its plane on the desktop (but may be completely
overlapped by another window or object on the screen).
visRgn: The region of a gratPort, manipulated by the Window Manager, that's actually visible on
the screen.

120 Glossary
Glossary

volume: A piece of storage medium fonnatted to contain files; usually a disk or part of a disk. A
3.5-inch Macintosh disk is one volume.
volume allocation block map: A list of 12-bit entries, one for each allocation block, that
indicate whether the block is cunently allocated to a file, whether it's free for use, or which block is
next in the file. Block maps exist both on flat directory volumes and in memory.
volume attributes: Information contained on volumes and in memory indicating whether the
volume is locked, whether it's busy (in memory only), and whether the volume control block
matches the volume infonnation (in memory only).
volume bit map: A data structure containing a sequence of bits, one bit for each allocation block,
that indicate whether the block is allocated or free for use. Volume bit maps exist both on
hierarchical directory volumes and in memory.
volume buffer: Memory used initially to load the master directory block, and used thereafter for
reading from files that are opened without an access path buffer.
volume control block: A nonrelocatable block that contains volume-specific infonnation,
including the volume information from the master directory block.
volume index: A number identifying a mounted volume listed in the volume-control-block
queue. The first volume in the queue has an index of l, and so on.
volume information block: Part of the data structure of a hierarchical directory volume; it
contains the volume infonnation.
volume information: Volume-specific information contained on a volume, including the volume
name and the number of files on the volume.
volume name: A sequence of up to 27 printing characters that identifies a volume; followed by a
colon (:) in Ftle Manager routine calls, to distinguish it from a file name.
volume reference number: A unique number assigned to a volume as it's mounted, used to
refer to the volume.
volume-control-block queue: A list of the volume control blocks for all mounted volumes.
wave table synthesizer: Similar to the old four-tone synthesizer, the wave table synthesizer
produces complex sounds and multi-part music.
waveform description: A sequence of bytes describing a wavefonn.
waveform: The physical shape of a wave.
wavelength: The horizontal extent of one complete cycle of a wave.
window: An object on the desktop that presents infonnation, such as a document or a message.
window class: In a window record, an indication of whether a window is a system window, a
dialog or alert window, or a window created directly by the application.
window definition function: A function called by the Window Manager when it needs to
perfonn certain type-dependent operations on a particular type of window, such as drawing the
window frame.

Glossary 121
Inside MacintoshX-Re/

window definition ID: A number passed to window-creation routines to indicate the type of
window. It consists of the window definition function's resource ID and a variation code.
window frame: The structure region of a window minus its content region.
window list: A list of all windows ordered by their front-to-back positions on the desktop.
Window Manager: 1be part of the Toolbox that provides routines for creating and manipulating
windows.
Window Manager port: A grafPort that has the entire screen as its portRect and is used by the
Window Manager to draw window frames.
window record: The internal representation of a window, where the Window Manager stores all
the infomation it needs for its operations on that window.
window template: A resource from which the Window Manager can create a window.
word wraparound: Keeping words from being split between lines when text is drawn.
word-selection break table: A break table that is used to find word boundaries for word
selection, spelling checking, and so on.
word-wrapping break table: A break table that is used to find word boundaries for screen
wrapping of text.
working directory: An alternative way of referring to a directory. When opened as a worldng
directory, a directory is given a working directory reference number that's used to referto it in File
Manager calls.
working directory control block: A data snucture that contains the directory ID of a worldng
directory, as well as the volume reference number of the volume on which the directory is located.
working directory reference number: A temporary reference number used to identify a
working directory. It can be used in place of the volume reference number in all File Manager calls;
the Ftle Manager uses it to get the directory ID and volume reference number from the worldng
directory control block.
workstation: A node through which a user can access a seiver or other nodes.
write data structure: A data structure used to pass infonnation to the ALAP or DDP modules.
X-Ref: An abbreviation for cross-reference.
zone: An arbitrary subset of AppleTalk networks in an internet See also heap zone.
zone header: The internal "housekeeping" infonnation maintained by the Memory Manager at the
beginning of each heap zone.
zone pointer: A pointer to a zone record.
zone record: A data structure representing a heap zone.
zone trailer: A minimum-size free block marking the end of a heap zone.

122 Glossary
Inside Macintosh X-Ref
Welcome to the world of programming for the Macintosh.GD No other pel'BCll181 computer bas been as enthusiastically received by the
programming community, and the large-ad growing4ody of Macintosh software attests to this. The Macintosh programming books
provide lhe guidelines and cedmical infonnation you'll need to develop Macintosh programs, but there are many other resources that can help
speed and simplify your development dfons.
The AppleProgrammer'sand Developer'sAssoclatlon
Whether you are a programmer, enthusiast. or make your living developing Apple-campatible products, you need fast access to the latest
technical infonnation and development tools.Now there's a source for you: The Apple Programmer's and Developer's Association (APDA).
An independent organization sponsored by Apple Computer, APDA is the one-stop source for lhe Apple programmer. Members get timely and
easy access to tedmical information and tools that will speed your developnent efforts.
Whether you 're looking fm programming tools, tedmical notes, or manuals, you have a single, convenient source. All these
materials-including seleded products and materials from Apple and ocher vendors-ere available to APDA members with one simple phone
call. Here are some of the producas you'll be able to order as an APDA member:
• Tools, system software, teduucal notes, and manuals for the Apple GD Il and Macintosh computers.
• Language products from companies such as Think Technologies, Borland, and Consulair.
• Teclmical books, including the entire Apple Technical library from Add.ism-Wesley.
APDA was created to serve the needs of the entire Apple programming community. For membership information, please contact:
APDA
290 SW 43rd Street
Renton, WA 98055
(206) 2Sl-6S48
AppleUnk: APDA
MCI: 312-7449
CompuServe 73527,'n
Programs for the Commercial Developer
If your primuy business is developing software products for canmercial markets, we strongly suggest that you investigate the Apple
Certified Developer Program, an aggressive program designed to help independent software developers get products to market quickly and
successfully. For information, wrile to:
Developer Progiams
Apple Computer, Inc.
MJS'n-W
20S2S Mariani Avenue
Cupertino, CA 95014
Developer Tools
You won't have to look far to find a development language that suits your specific requirements. A large family of Macintosh languages will
serve yaur development needs, whether your expertise is in Pascal, Assembler, C, FORTII, FOR1RAN, COBOL, BASIC, Logo, Lisp,
Modula, or one of many Olhen. And lhe infonnation comained in lnsitk Macintosh can be applied to any of these Janguages.
Apple offers a munber of special products essential to Macintosh programmers. Available through APDA, they include:
• Apple's Macintosh Programmer's Wmkshop (MPW) and MacAppN development system products.
• Macintosh utilities, example programs, and soun:e code.
• Preliminuy drafts of technical documentation.
• Latest versions of the Macintosh system software.
Apple is constantly updating the tools and utilities you need. Beccrne an APDA member and you'll be kept infonned of their availability.
Technical Notes
Macintosh Technical Notes are published on a bi-monthly basis. Available through APDA, user groups, developer consoniums, and electronic
infonnation services, they provide timely and helpful informatiClll, programming hints, and example code to he1p make your programming
efforts more creative and productive.
Want More Information?
Apple bas put together an information packet that includes:
• Infonnatioo about independent and Apple-sponsored programs for Apple developers.
• Support rescurc:es for developen, including names and addresses of Macintosh user groups, developer consortiums, and electronic
services that cater to yaur special needs.
• A mrrent list of Apple and third-party progranuning languages.
• Other materials of interest to the Apple developer.
1bis package is yours for the asking. Simply send your request to:
Apple Computer, Inc.
MIS 37-S
20S2S Mariani Avenue
Cupertino, CA 95014
,

Apple~ Inside Macintosh > > $9 . 95 FPT


USA
7be Official ~Ref
Publication from
Apple Computer, Inc.
Inside Macintosh X-Ref is your key to eight programming books for the Apple Macintosh<!) family of
computers: Inside Macintosh, volumes I tl1rough Y; Programmer's Introduction to the Macintosh
Family;Technical Introduction to the Macintosh Family; and Designing Cards and Driversfor
Madntosh II and Macintosh SE. It provides a single general index to all eight volumes, togemer witl1
three global appendixes, a comprehensive glossary, and a new index of constants and field names.
Written by tl1e people at Apple Computer, me five volumes ofInside Madntosh provide me essential
information you'll need to write software for me entire Macintosh family. Volume I contains
important introductory material and describes me QuickDraw graphics package and important
Managers such as me Resource, Font, and Menu Managers. Volume II complements Volume I in
describing me Managers tlm perform such basic routines as file and device VO, memory
management, and interrupt handling. Volume ill discusses your program's interface witl1 me
Macintosh Finder;· describes me Macintosh 128K and 512K computers, and provides summaries
of all me Managers and omer software described in volumes I through ill. Volume IV discusses me
changes introduced by me Macintosh 512K Enhanced and Macintosh Plus computers, including
tl1e Hierarchical File System and me SCSI port. Volume Vdiscusses me changes introduced by
me Macintosh SEand Macintosh II computers, including color, NuBus'" slots, and me Apple
Desktop Bus:·
Programmer's Introduction to the Macintosh Family provides an overview of software
development for all Macintosh computers. It focuses on me-differences between event-driven
programming and more traditional programming techniques, while explaining topics such as me
Macintosh user interface and programming in high-level languages. Technical Introduction to the
Macintosh Famio1provides an introduction to me general design, system archicecrure, and ROM
design of Macintosh computers. It introduces me ideas behind me Macintosh user interface and
outlines A/~ Apple's implementation of tl1e AT&T UN~ operating system for me Macintosh II.
Designing Cards and Dn'versfor Macintosh II and Macintosh SE provides programmers and
hardware developers wim all me information needed co design Macintoshexpansion cards.
Inside Macintosh X-Ref is a valuable guide co Apple Computer's official programmer's references for
creating software for me entire familyof Macimosh computers.

About the cover: This design represents a new look for me original edition of Inside Macintosh
X-Ref, and me other books in tl1e Apple Tedmical Library. The contents have not been changed.

Printed in USA.
50995
Apple Computer, Inc.
20525 Mariani AYenue
Cupertino, CA 95014
(408) 9%-1010
TI..xln-576 9 780 20 1 19265 0
Addison·Wesley Publishing Company, Inc. I SBN 0 - 201-19265-9

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy