# Macintosh Revealed Volume Three 1989 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-633519008e71b85f1faadc203b06546cf3101d9aba4c46650a67a156c59c5cb2)

Macintosh Revealed

Transcribed text:

HAYDEN Macintosh Library BOOKS
48402
Macintosh® Revealed
Mastering the Toolbox
Volume Three • Includes Version 4.0
For All Macintosh Computers
Stephen Chernicoff

Image description: A book cover with a teal-to-blue gradient background, a yellow top band with a red script 'Macintosh Library' logo, a framed central illustration of an arched dark doorway containing floating geometric solids such as cubes, pyramids, and a tall prism against a blue sky, and red wavy lines on either side of the frame.

Reading notes: Series label 'Macintosh Library' is in red script and partly stylized; spelling taken as printed. Publisher name 'HAYDEN' is in small caps at top left and 'BOOKS' at top right, reading order inferred. The catalog number 48402 is small and placed at upper right; included as printed.

Printed product names: Macintosh Revealed

Languages: English

[Original Image 1](https://www.vintageapple.net/files/a2204c5b0168db30c188d20c54c9147329f7d7408f9f19bcaa6f695518319e29/e5669326cf29a258f54bc461.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-a8e6a2483523f099af3a8f70d1cdf6656d312f74fdfca6221a7e4aeefc905b12)

Macintosh Revealed

Transcribed text:

HAYDEN Macintosh Library BOOKS
48402
Macintosh® Revealed
Mastering the Toolbox
Volume Three • Includes Version 4.0
For All Macintosh Computers
Stephen Chernicoff

Image description: A book cover with a teal-to-blue gradient background, a yellow top band, a red squiggle motif, and a framed photo-style illustration of geometric solids (pyramids, cubes, and a tall prism) inside a dark stone archway under a blue sky.

Reading notes: The 'Macintosh Library' script logo in red is stylized and was read as 'Macintosh Library'; the spelling may vary slightly on the logo. The number 48402 is small and was transcribed as shown.

Printed product names: Macintosh Revealed

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-f7eef8a7ab286d8fb238b0337ab51a93927dbfc7300e318651ed976b3dd61840)

Image description: The image is an entirely blank white page with no visible artwork, layout elements, or text.

[Original PDF page 2](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-2acb191571b805c19d68dcb23e946f2f69c99700714709d6d96f0aede19adacb)

Transcribed text:

Related Titles
Macintosh® R evealed
Volume   One:   U nlocking   the Toolbox,
Second Edition
Siephen C hemicoff
Volume   Two: Programming with the
Toolbox,   Second   Edition
Stephen   C hernicoff
Volume   Three: Mastering the Toolbox
Siephen Chemicoff
Volume   Four:   Programming   the
Macintosh®   II   (fortlxoming)
Siephen Chernicoff and G eri Y ounggren
How to Write Macintosh® Software,
Second   Edition
Scott   Kilaster
MPW   and Assembly Language   Programming
Scott Kronick
IBM®   PC   and Macintosh® Networking:
Featuring   TOPS®   and   AppleShare®
Steve   ~l ich el
Macintosh® Hard Disk Management
C harles   R ubin and   13cncion   j.   Calica
Object-Oriented   Programming
for the Macintosh®,   Second   Edition   (fortlxo111i11gJ
Kurt   j .   Schmucker and   Carl   Nelson
dBASE® M ac   Programmer's   Reference Guide
Edward Jones
HyperTalk™   Programming   (Version   1.2),
Revised Edition
Dan   Shafer
HyperTaJkT MTips and Techniques   (for1lxo111i11gJ
D an Shafer
The Waite Group's HyperTalk™   2.0   Bible
The Waite Group
The   Waite   Group's
Tricks of the H yperTalk TM   Masters   (fortlxo111i11R}
11 1e   Waite   G roup
U sing   ORACLE®   with   HyperCard(!j,   (Jortlxo111i11gJ
D an   Shafer
680XO   Programming   by Example
Stan   Kelly-Bootle
For   t/Je   retailer nearest   you,   or to order d irectly from tbe   p 11blisber,   call   80(J.428·SAMS.
In   Indiana, Alaska, and Ha waii call   3 17·298-5699.

Reading notes: Several characters appear damaged or misread, such as 'Siephen' and 'Chemicoff' spellings and 'j.' initials. Reading order of the book list is jumbled across columns.

Printed product names: Macintosh · HyperCard · dBASE · TOPS · AppleShare · IBM PC · ORACLE

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-b13d0e633586f57e7260f41bb1e2b4aac2031652ba6341928444cf392b9127cf)

Macintosh Revealed

Transcribed text:

Macintosh®
Revealed
Volume   Three:   Mastering the Toolbox
Stephen Chemicoff
#f
HAYDEN   BOOKS
A Division of Howard   W.   Sams   &   Company
4300   West 62nd Street
Indianapolis. Indiana 46268   USA

Reading notes: Stray character '#f' appears between author name and publisher name

Printed product names: Macintosh

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-dc3b74c5761a5a6bded57d99bdddacbbbf2222e7c2e66f46933ee4214afe4a63)

Transcribed text:

For
David,
who is mastering his first language.
e   1989   by   Stephen   Chemtcoff
FIRSTEDmON
FIRST PRINllNG-1989
All rights reserved. No part of this book shall be reproduced, stored   in   a retrieval system, or
transmitted by any means, electronic, mechanical,   photocopying,   recording,   or   otheJWise,
without written permission from the publisher. No patent liability ts assumed with respect to
the use of the   Information   contained herein. While   every   precaution has been taken in the
preparation of this book, the publisher and author assume no responsibility for errors or
omissions. Neither is any ltabtltty assumed for damages   resulting   from   the use of the   Informa-
tion contained herein.
International Standard Book Number:   0-672-48402-1
Libraiy   of   Congress   Catalog Card   Number:   85-8611
Acqutstttons Editor:   Greg   Michael
Development Editor: C.   Herbert Feltner
Technical Review:   Scott   Knaster
Editor:   Albright   Communl.catlons,   Inc.
Cover Design:   Celeste   Design
Indexer:   Ted   Laux
Composition:   Hartman   PubUshlng
Printed   tn   the   Unlled   States of   America
Trademark   Acknowledgmenu
All terms mentioned   in   this   book that   arc   known to be trademarks or   sCIVicc   marks arc listed
below. In addttion, terms suspected of being trademarks or   sCIVice   marks have been appropri-
ately   capitalized.   Howard W.   Sams   &   Company cannot attest to the   accuracy   of this   Informa-
tion.   Use   of a term   in   this   book should not be   regarded   as   affecting   the   validity   of   any
trademark or service mark.
Apple, the Apple Logo, AppleTalk, lmageWriter, Macintosh, LaserWriter, and Lisa arc
registered   trademarks of Apple Computer Inc.
Hypetralk   and MPW are trademarks of Apple Computer Inc.
MacPaint, MacDraw, and MacWrite arc   registered   trademarks of   Claris   Corp.
MC68000,   MC68020, and MC68881 arc trademarks of Motorola, Inc.
SY6522 ts a trademark of Syncrtek, Inc.
Postscript ts a   registered   trademark of Adobe Systems, Inc.
Turbo   Pascal ts a   registered   trademark of Borland International.
Ltghtspeed Pascal ts a trademark of1HINK Technology, dtv. of Symantec Corp.
"'The   Pause   That   Refreshes"   ts a slogan of   The   Coca-Cola Company and ls used by   permission.

Reading notes: OCR-damaged characters in copyright and trademark acknowledgments (e.g., 'Libraiy', 'Acqutstttons', 'Ltghtspeed') Catalog number '85-8611' is a Library of Congress catalog number rather than a visible date

Printed product names: Apple · Apple Logo · AppleTalk · lmageWriter · Macintosh · LaserWriter · Lisa · Hypetralk · MPW · MacPaint · MacDraw · MacWrite · MC68000 · MC68020 · MC68881 · SY6522 · Postscript · Turbo Pascal · Ltghtspeed Pascal

Printed dates: 1989 · 85-8611

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-42999c485f05912692fe822181252aa1fa7870224bc70aae7b4ff161d0d6a66e)

Transcribed text:

Contents
Preface   x
Acknowledgments
Chapter 1   Mastering   the Tools   1
Chapter2   Rolling   Your   Own   5
Customizing QulckDraw   5
Customizing   Windows   9
Customizing Controls   41
Customizing   Menus   52
Nuts and Bolts   54
Reference   57
2.1   Customizing   QulckDraw   57
2.1.1   Bottleneck Record   57
2.1.2   Low-Level Bit Transfer   59
2.1.3   Line Drawing   60
2.1.4   Shape   Drawing   62
2.1.5   Text Drawing   64
2.1.6   Picture Processing   66
2.1.7   Picture Comments   68
2.2   Customizing   Windows   69
2.2.1   Window Definition Function   69
2.2.2   Creating and Destroying Windows   72
2.2.3   Drawing Windows   73
2.2.4   Resizing Windows   74
2.2.5   Locating Mouse Clicks   75
v

Reading notes: OCR reads 'QulckDraw' in the table of contents, likely a misrecognition of 'QuickDraw'

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-2cea165eee5e8054a45f6e9376e0e57721eb695fd593dc4925c97e868d59d816)

Transcribed text:

vi   Mastering the Toolbox
~~~~~~~~~~~~-
2.3   Customizing Controls   77
2.3.1   Control Definition Function   77
2.3.2   Creating and Destroying Controls   79
2.3.3   Drawing Controls   80
2.3.4   Locating Mouse Clicks   81
2.3.5   Tracking and Positioning   82
2.4   Customizing Menus   84
2.4.1   Menu Deflnitlon Procedure   84
2.4.2   Menu Display   86
2.4.3   Locating Mouse Clicks   87
2.5   Customizing-Related Resources   88
2.5.1   Resource Type   'WDEF '   88
2.5.2   Resource Type '   CDEF   '   89
2.5.3   Resource Type   'MDEF '   90
2.5.4   Owned Resources   90
Chapter3   In   the Drlver•s   Seat   93
Driver Identification   94
Working with Drivers   95
The Device Control Entry   97
Driver   Structure   101
Reference   105
3.1   Driver-Related Data   Structures   105
3.1.1   Driver Structure   105
3.1.2   Driver Flags   108
3.1.3   Unit Table   110
3.1.4   Device Control Entry   113
3.1.5   Driver   1/0   Queue   116
3.1.6   Operating System Queues   118
3.1.7   Manipulating Queues   120
3.2   Driver Operations   122
3.2.1   Opening and Closing Drivers   122
3.2.2   Reading and Writing   123
3.2.3·   Device Control   124
3.3   Driver-Related Resources   126
3.3.1   Resource   Type '   DRVR'   126

Reading notes: Table of contents with OCR-style errors such as 'Deflnitlon', 'Drlver•s', and 'Operating System Queues' spacing. Some page numbers and dotted leaders are ambiguous in the extracted text.

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-17b6f1d50830d8833c931d282080721183436cac5fe1a0e2ffa0415747cad4b4)

Transcribed text:

vii   Contents
Chapter 4   Looking Good on Paper   127
r.t:acintoshPrinters   128
The Printer Resource File   130
Imaging and   Printing   135
Print Records   139
Printing-Related Dialogs   150
Document Printing   152
Printing   the   Spool   File   174
Printing   from the   Finder   184
Nuts and Bolts   189
Reference   197
4.1   Printing-Related Data Structures   197
4.1.1   Printing   Port   197
4.1.2   Print Record   198
4.1.3   Printer Information Subrecord   200
4.1.4   Style   Subrecord   202
4.1.5   Job   Subrecord   205
4.1.6   Auxiliary   Information Subrecord   209
4.1.7   Printing   Status   Record   211
4.2   Preliminary Operations   213
4.2.1   Initializing the Toolbox for Printing   213
4.2.2   Initializing Print Records   214
4.2.3   Printing-Related Dialogs   215
4.2.4   Error Reporting   216
4.3   Document Printing   218
4.3.1   Opening   and Closing a Document   218
4.3.2   Page   Imaging   219
4.3.3   Spool   Printing   221
4.4   Low-Level   Printing   223
4.4.1   Opening   and Closing the Printer Driver   223
4.4.2   Printer Driver Attributes   224
4.4.3   Low-Level Operations   225
4.4.4   Bit Map Printing   226
4.4.5   Text   Streaming   227
4.4.6   Screen   Printing   228
4.4.7   Printer Control   229
4.4.8   Font   Support   231
4.4.9   Font Characterization Table   234

Reading notes: Source is a table of contents; no headline or advertised products, prices or dates are present. "r.t:acintosh" appears to be a damaged rendering of "Macintosh" in the contents listing.

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-9976046e6e0ed0488b139a383b5c4e858adab8f6b881c712fc6de2a0db4c68c8)

Transcribed text:

vill   Mastering the Toolbox
~~~~~~~~~~~~
Chapter 5
Chapter 6
4.5   Nuts and Bolts
4. 5.1   Customizing the   Printing   Dialogs
4.5.2   Customizing Paper   Sizes
4.6   Printing-Related   Resources
4. 6.1   Resource Type '   PREC   '
4.6.2   Resource Type'   PDEF'
4.6.3   Printer Resource Files
Sound   and   Fury
Fundamental Concepts
The   Sound   Generator
Defining and Playing   Sounds
Reference
5.1   Defining   Sounds
5.1.1   Types of Sound
5.1.2   Square-Wave Sound
5.1.3   Four-Tone Sound
5.1.4   Free-Form Sound
5.2   Playing   Sounds
5.2.1   Starting and Stopping Sounds
5.2.2   Speaker Volume
Playing   with   a Full Desk
Life as a Desk Accessory
Desk   Accessory   Structure
Stopwatch:   A   Simple   Desk   Accessory
The Open Routine
The Control Routine
The Close Routine
Reference
6.1   Desk   Accessory   Structure
6.1.1   Event Mask
6. 1.   2   Control Codes
6.2   Desk   Accessory   Operations
6. 2.1   Opening and Closing Desk Accessories
6.2.2   Responding to Events
6.2.3   Handling Menu Commands
6.2.4   Performing Periodic Tasks
235
235
238
240
240
241
243
247
2.47
251
254
267
267
267
268
271
274
276
276
278
281
282
284
286
289
302
320
323
323
323
326
328
328
330
332
334

Reading notes: Table of contents page numbers are listed without clear chapter association; the numeric list appears to be page references rather than dates. Some OCR-like spacing artifacts in headings such as '4. 5.1' and '6. 1. 2' may be extraction noise.

Printed dates: 235 · 238 · 240 · 241 · 243 · 247 · 251 · 254 · 267 · 268 · 271 · 274 · 276 · 278 · 281 · 282 · 284 · 286 · 289 · 302 · 320 · 323 · 326 · 328 · 330 · 332 · 334

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-3eff749ffd5055df86761b56f79ebddb7d82b49d8e46e1ada83913fe5fe9db97)

Transcribed text:

ix   Contents
6.3   Keyboard Routines
6.3.1   Resource   'fype   'FKEY'
Appendix   A
Appendix   B
Appendix   C
Appendix   D
Appendix   E
Appendix   F
Appendix   G
Appendix   H
Glossary
Index
Toolbox   Summary
Resource Formats
Reference Figures
Reference Tables
Error Codes
Summary   of Trap Macros and Trap Words
Summary   of Assembly-Language   Variables
Program Listings
335
335
337
361
367
371
377
385
415
421
553
597

Reading notes: Table of contents page; no advertised products, prices, or dates present.

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/1#scan-37584b449f46e4b15347b4fa03cccf5e25866daceb6a7e394e4b9f978d04e5cb)

Transcribed text:

Preface
'W:ien   I   wrote the   o:rlglnal   Maclniosh   Revealed   back   fn   1984,
perhaps the hardest part of   the   job was   knowing   where to stop.   There
are so many features   in   the Macintosh Toolbox, so many ways to use
it, so many options and capabilities it places at your disposal, that
the two volumes and   1100-odd   pages of   that first edition could easily
have run twice as long and still not exhausted the subject.   (If you
don't believe this, just look at Apple's own   official   handbook.   Inside
Macintosh,   now   in   its fifth volume and counting.)
But as always. stubborn realities intervened. Apple had a whole
team of highly talented writers to produce its technical documenta-
tion; I had only one keyboard and one badly worn set of fingers.
Besides. I could only stuff so many pages into each volume without
breaking the binding machine, and the publisher was hoping to have
the book in the stores sometime before the turn of the millennium.
Much as I would have liked to cover everything, I had to make some
hard choices about which topics to include and which to leave out.
This   book gives me a chance to fill in some of those omissions.
Here you'll learn how to print documents on paper from a Macintosh
program, generate sounds through the built-in speaker, write a
working desk accessory,   design   your own windows and menus, and
more.   Volume   One   unlocked the Toolbox and Volume Two showed
you how to structure your application programs around   it.   Volume
Three   will   take you the next step on the road to   mastering   its secrets
and subtleties. As a Macintosh philosopher once said, the journey is
the reward.
xi

Reading notes: Line-break and hyphenation artifacts such as 'Maclniosh' and 'fn' may reflect OCR errors in the source text. The phrase 'a Macintosh philosopher once said' is quoted without attribution in the source.

Printed product names: Macintosh Toolbox · Inside Macintosh

Printed dates: 1984

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/475818a023079ce1e162c9ffa5ccf91a4eac0e12ba7659f349b803068ce30b1d/Macintosh_Revealed_Volume_Three_1989.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-volume-three-1989-ab03ac/2.md)
