# Macintosh Revealed 2nd Edition Volume One 1987 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/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-2nd-edition-volume-one-1987-8b822d/1#scan-7aaa5108f469ca1a75a62f3384814981d45bf4507aab2061e28d477b627e080c)

Transcribed text:

HAYDEN Macintosh Library BOOKS 048400

Macintosh™ Revealed
Unlocking the Toolbox
Volume One • Second Edition

Updated for the Macintosh Plus™ and Macintosh SE™

Stephen Chernicoff

Image description: A blue gradient book cover with orange top and bottom bands, a yellow wavy line, and a framed dark illustration of geometric solids and an arched window against a night sky.

Reading notes: The 'Macintosh Library' script logo in the top band is stylized and was transcribed as read; the '048400' code is small and may be a catalog number. Trademark symbols (™) are transcribed as shown on the cover.

Languages: English

[Original Image 1](https://www.vintageapple.net/files/3b99b3a3c5462e52296220902ea3c22dbb0f5bea60eb0d52e4308166620270b9/d42fb66a90a1345c0234a361.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-f75eac0bf100f5a152461cc91f6ff17725ef2c907d6633eae545978a5a83f0a5)

Transcribed text:

HAYDEN Macintosh Library BOOKS 048400

Macintosh™ Revealed
Unlocking the Toolbox
Volume One • Second Edition

Updated for the Macintosh Plus™ and Macintosh SE™

Stephen Chernicoff

Image description: Book cover with a blue-to-teal gradient background, red top and bottom bands, a yellow wavy line, and a framed photo of geometric glass and metal prisms inside a dark arched architectural niche.

Reading notes: The small number 048400 near the top right is a catalog or publisher code and may not be a product number; reported only as printed. Script logo 'Macintosh Library' is stylized and read as printed; minor letterform uncertainty possible.

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-8beced112dd89318aafd8b4ff98360d9759ac97c8a20a77c170174116db758dd)

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

Reading notes: No visible text or graphics were found in the image, so all printed fields are empty.

[Original PDF page 2](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-049393e276bee6d5fccc5d8e203bc0bedff396e6e8fe376fc0585fc6ab43bf0c)

Transcribed text:

HAYDEN   BOOKS
/'/---~~~~
The Macintosh Library provides the most
current, hands-on information for optimal use
of the Macintosh computer. With each new
title we bring you up-to-date information
from outstanding and accomplished
Macintosh Authors.
Macintosh Revealed
Volumes   One   and Two
Second Edition
Stephen Chernicoff
Nos.   048400,   048401,   $24.95 each
Advanced Macintosh   Pascal™
Paul Goodman
No.   046570,   $19.95
How to Write Macintosh™
Software
Scott   Knaster
No. 046564, $27   .95
MacAccess: Information in
Motion
Gengle and   Smith
No.   046567,   $21.95
Macintosh™   Multiplan®
Lasselle   and Ramsay
No.   046555,   $16.95
Personal   Publishing with the
Macintosh TM   (Featuring
PageMaker   Version   2.0)
Second Edition
Terry M. Ulick
No.   048406,   $19.95
Basic Microsoft® BASIC for the
Macintosh™
Coan   and   Coan
No.   046558,   $19.95
MPW and   Assembly   Language
Programming
Scott   Kronick
No.   048409,   $24.95
Introduction to Macintosh™
Pascal
Jonathon Simonoff
No. 046562, $19.95
The Macintosh Advisor™
Harriman and   Calica
No. 046569, $18.95
Object-Oriented Programming
for the Macintosh™
Kurt J. Schmucker
No. 046565, $34.95
Programming the   68000
Rosenzweig and Harrison
No.   046310,   $24.95
The   Excel   Advanced User's
Guide
Richard Loggins
No. 046626, $19.95
dBASE Mac Programmer's
Reference Guide
Edward   C.   Jones
No.   048416,   $19.95
For the retailer nearest you, or to order directly from the publisher,
cal/   800-428-SAMS.   In Indiana, Alaska, and Hawaii cal/ 317-298-5699.

Reading notes: Price for How to Write Macintosh Software is printed as '$27 .95' with a space; read as $27.95 Price for Macintosh Revealed is shown as '$24.95 each' for Nos. 048400 and 048401

Printed product names: Macintosh Revealed Volumes One and Two Second Edition · MacAccess: Information in Motion · MPW and Assembly Language Programming · Programming the 68000 · The Excel Advanced User's Guide · dBASE Mac Programmer's Reference Guide

Printed prices: $24.95 · $19.95 · $27.95 · $21.95 · $16.95 · $18.95 · $34.95

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-1909b6f3b39e6dbad3b9c3d022990447ead3ad4370ca46a3728f2a37e620a8d1)

Transcribed text:

Macintosh   TM
Revealed
Volume   One:   Unlocking   the Toolbox
Second Edition
Stephen   Chernicoff
#f
HAYDEN   BOOKS
A Division of Howard   W.   Sams   &   Company
4300 West   62nd Street
Indlanapolls. Indiana 46268   USA

Reading notes: Possible OCR error: 'Indlanapolls' likely reads 'Indianapolis' Stray character '#f' in source text

Printed product names: Macintosh

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-08f14629b29ef238130b205c57accf25bd39609becbd567ddbccb2402003bb07)

Transcribed text:

For
Ann,
who likes the one with the mouse.
©   1985 and 1987 by Hayden Books
A Division of Howard W.   Sams   and Co.
SECOND   EDmON
THIRD PRINTING-1988
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 is assumed with respect to the use of the infonnation
contained herein. While every precaution has been taken in the
preparation of this   book.   the author and publisher assume no
responsibility for errors or omissions. Neither is any liability
assumed for damages resulting from the use of the infonnation
contained herein.
International Standard Book Number:   0-672-48400-5
Llbraiy   of Congress Catalog Card Number: 85-8611
Acquisitions Editor:   Michael McGrath
Macintosh Library Cover Design:   Jim Bernard
Cover Art:   Celeste   Design
Index:   Ted   Laux
Composition:   McFarland Graphics   &   Design, Inc.
Printed in the United   States   of   America
Trademark   Acknowledgments
All   tenns   mentioned in this book that are known to be trademarks
or   service   marks are listed below. In addition, tenns suspected
of being trademarks or   service   marks have been appropriately
capitalized. Hayden Books cannot attest to the accuracy of this
information.   Use   of a tenn in this book should not   be   regarded as
affecting   the validity of any trademark or   service   mark.
AppleTalk.   LaselWriter,   and Llsa are registered trademarks of Apple
Computer Inc.
ImageWriter, ImageWriter II, Macintosh, MacPaint, MacWrite, and
MacWorks are trademarks of Apple Computer Inc.
Turbo Pascal is a registered trademark of Borland International.
Llghtspeed Pascal is a trademark of THINK Technology.

Reading notes: OCR errors in copyright and front matter (e.g., 'infonnation', 'tenns', 'Llsa', 'Llghtspeed') Some words are split by spacing, e.g., 'Llbraiy', 'Sams' lines Possible misreading of 'LaselWriter' and 'Llghtspeed' brand names

Printed product names: AppleTalk · ImageWriter · ImageWriter II · Macintosh · MacPaint · MacWrite · MacWorks · Turbo Pascal

Printed dates: 1985 · 1987 · 1988

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-05e6bd183b4251f5d17cf8ff01af4b016badbf285f76875bf20af79deef9d4c8)

Transcribed text:

Preface
If   you're reading this book, you probably don't need to be told that
Apple Computer's Macintosh is an   extraordinaiy   personal com-
puter.   It   does things you may never have seen a computer do before,
in ways you'd never even imagined.   If   you've wondered what goes
on behind the scenes to make the magic happen, this book is for
you.   By the time you've finished it, the inner workings of the
Macintosh will stand revealed before your eyes, and you'll be able to
use its built-in   User   Interface Toolbox to perform the same magic in
your own programs.
One   thing must be said, however, right at the outset: the Tool-
box is for experienced programmers, not beginners. To get the most
out of this book, you should have some previous experience (the
more the better) in at least one high-level programming language.
The programming examples given here are written in Pascal, but the
general principles they embody are applicable in other languages as
well.   If   Pascal isn't your native programming tongue, you should at
least be able to pick up enough of it to follow the logic of the
programming examples and apply them in your own   prefe:rred   lan-
guage. The book will offer a few hints to help you over the rough
spots, but in general it's assumed that you're already acquainted
with the syntax and semantics of standard Pascal. (For hard-core bit
bangers, there's also information on how to use the Toolbox in
assembly language.)
The only other assumption is that you want to know how the
Macintosh user interface works from the inside. Whether you're a
professional   software   developer,   a   college student,   a   midnight
hacker, or just the kind of person who likes to take watches apart
and see what makes them tick, read on and behold the Macintosh
revealed.
STEPHEN   CHERNICOFF
Berkeley, California
v

Reading notes: Possible OCR hyphenation or spacing errors such as 'extraordinaiy', 'prefe:rred', and 'Pascal isn't' in source copy

Printed product names: Apple Computer's Macintosh · Macintosh · User Interface Toolbox · Toolbox

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-27575737ec5da8b663d44de0483fe76645949f09b0b392c146e5efb4a1b1d1be)

Transcribed text:

Acknowledgments
No book is ever the   product of one person working alone-
especially a book of the size and complexity of this one. These are
some of the people who helped me bring the book to completion,
and to whom   I   owe a special debt of gratitude and appreciation:
First and forever, to my wife, Helen, whose love and under-
standing through the ordeal of living with an author have brought
new meaning to the word   "patience";   and to my parents, Murray
and Annette Chernicoff, for their unwavering encouragement and
support.
To Chris Espinosa and Mike Murray, who, as my managers at
Apple, graciously afforded me the freedom to pursue this project as
an independent agent.
To Mike McGrath, Ronnie   Groff,   Mary Picldum, and Nancy
Ragle   of Hayden Book Company, professionals all in the noblest
sense of the word, whose contributions were manifold and invalu-
able.
To Don Herrington, Jennifer Ackley, and Wendy Ford of
Howard W.   Sams   &   Co.,   for their aid in preparing the second edition.
To   David   Casseres of Apple Computer, for his indispensable
assistance with the   programming examples and his wise and
thoughtful counsel throughout.
To Scott Knaster of Apple Computer, for his thorough techni-
cal review of the manuscript and his inexhaustible patience with my
questions, intelligent and otheIWise.
To   Steven   Smith   of CommuniTree Group, who executed the
illustrations with imagination and panache.
And finally,   to the men and women of Apple Computer's
Macintosh Division, as talented and creative a group of people as   I
have ever been privileged to work with; and to   Steven   Jobs, erst-
while chairman of the board of Apple Computer and general man-
ager of the Macintosh Division, who provided the vision and inspira-
tion for these remarkable people to bring Macintosh to reality.
vi

Reading notes: Line-break hyphenation and possible OCR artifacts in 'otheIWise' and spaced words in the acknowledgments text

Printed product names: Macintosh

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-20729d3d9e79ad675062b6a17ffb42d2809e63cf4d9d77ea8a8b0aee743c13b8)

Chapter 1 All the Tools You Need

Transcribed text:

Contents
Chapter   1   All the Tools   You   Need   1
How This Book Is   Organized   3
How   to   Use   This Book   4
What's   in   the Reference Sections   5
Some Terms and Conventions   8
Chapter 2   Putting   the Tools to Work   11
The   Language   Problem   11
The Trap Mechanism   13
The   Stack   17
The Pascal Interface   18
Stack-Based and   Register-Based   Routines   19
The   Assembly-Language   Interface   20
Extended   Features of Pascal   23
General-Purpose   Udlities   27
Strings   28
Bit-Level   Operations   29
Arithmetic   Operations   31
Date and Time   33
Reference   34
2.1   Blementary Data Structures   34
2.1.1   Strings and Procedures   34
2.1.2   String   Operations   36
2.2   Bit-Lewi   Operations   38
2.2.1   Single Bit Access   38
2.2.2   Logical   Operations   39
2.2.3   Word Access   40
2.2.4   Direct Storage   41
2.3   Arithmetic   Operations   42
2.3.1   Fixed-Point Numbers   42
2.3.2   Fixed-Point Arithmetic   44
.. Vil

Reading notes: Several words are split by spacing and possibly OCR errors, e.g. 'Blementary' and 'Bit-Lewi' Table of contents reading order and page numbering may be imperfect

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-39995428d995783f4ffb783e767bc892c713f19d32ab764e33cf3077db88bbf7)

Transcribed text:

Chapter 3
viii   Contents
2.3.3   Fractions
2.3.4   Fraction Arithmetic
2.3.5   Long Multiplication
2.3.6   Trigonometric Functions
2.3.7   Bimuy/Decimal Conversion
2.3.8   Random Numbers
2.4   Date and Time
2.4.1   Date and Time in   Seconds
2.4.2   Date and Time Records
2.4.3   Date and Time Conversion
2.4.4   Date and Time   Strings
Thanks   for the Memory
Memory   Organbation
The Application Global   Space
The   Stack   and the Heap
Handles and Master Pointers
Relocatable   and   Nonrelocatable   Blocks
Elementary Data Types
Error   Reporting
Locking   Blocks
Copying and Combining   Blocks
Purging   Blocks
Reference
3.1   Memory Basics
3.1.1   Elementary   Data   'fypes
3.1.2   Error   Reporting
3.1.3   Machine Configuration
3.2   Heap Allocation
3.2.1   Allocating Blocks
3.2.2   Releasing Blocks
3.2.3   Size   of Blocks
3.2.4   Properties of Blocks
3.2.5   Block Location
3.2.6   Copying Blocks
3.2.7   Combining Blocks
3.3   Heap Management
3.3.1   Available   Space
3.3.2   Reclaiming Free   Space
3.3.3   Purging   Blocks
3.3.4   Heap Expansion
45
46
47
48
49
50
51
51
53
54
55
59
59
62
65
67
70
73
74
76
80
84
87
87
87
88
89
91
91
93
94
96
99
101
103
104
104
106
107
109

Reading notes: Chapter 3 contents list: 'Bimuy/Decimal' likely OCR error for 'Binary/Decimal' 'Organbation' and 'Elementary Data Types' spelling variants in contents list appear as printed

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-ba289a0171808f17651adc9f2c9de3fa9fb91ebec751d7b1c8f496d2632c5f67)

Transcribed text:

Chapter4
ix   Contents
Any   Port   in   a Storm
Initializing   QuickDraw
Bits,   Pixels,   and   Images
Coordinates, Points, and Rectangles
Calculations   with   Points and Rectangles
Polygons and   Regions
Bit Maps
Graphics   Ports
Local and Global Coordinates
Reference
4.1   Mathematical Foundations
4.1.1   Points
4.1.2   Rectangles
4.1.3   Polygons
4.1.4   Defining   Polygons
4.1.5   Regions
4.1.6   Defining Regions
4.1.7   Setting   Regions
4.2   Graphical Foundations
4.2.1   Bit Maps
4.2.2   Graphics   Ports
4.2.3   Pixel Access
4.3   Operations   on Graphics   Ports
4.3.1   Initializing QuickDraw
4.3.2   Creating and Destroying   Ports
4.3.3   CuITent   Port
4.3.4   Bit Map and Coordinate   System
4.3.5   Port   Rectangle
4.3.6   Clipping Region
4.4   Calculations   on Graphical Entities
4.4.1   Calculations on   Points
4.4.2   Coordinate Conversion
4.4.3   Testing for Inclusion
4.4.4   Calculations on One Rectangle
4.4.5   Calculations on Two Rectangles
4.4.6   Calculations on Polygons
4.4.7   Calculations on One Region
4.4.8   Calculations on Two Regions
4.4.9   Scaling   and Mapping
111
112
114
117
121
125
131
134
140
147
147
147
149
151
152
153
155
156
158
158
160
163
164
164
165
167
168
169
170
172
172
173
174
176
177
178
179
181
183

Reading notes: Table of contents page numbers appear run together with entry text and may not align exactly with their headings

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/1#scan-5adb67257778701c68a554fcc0f7c5ee9846a4db74bc6ec7b78985124d2bd6a4)

Transcribed text:

x   Contents
Chapter 5   Quick on the Draw   185
Line Drawing   186
Pen   Size   191
Hiding the   Pen   192
Patterns and   1hlnsfer   Modes   193
Direct Bit Transfer   197
Icons   204
Drawing Shapes   205
Rectangles   206
Ovals   212
Rounded Rectangles   213
Arcs and Wedges   216
Polygons   218
Regions   219
Pictures   227
Nuts   and   Bolts   228
Reference   232
5.1   Drawing   Fwtdamentals   232
5.1.1   Patterns   232
5.1.2   Standard   Patterns   234
5.1.3   1hlnsfer   Modes   237
5.1.4   Low-Level Bit Transfer   242
5.1.5   Scrolling in a Bit Map   244
5.1.6   Special Operations   245
5.2   Line Drawing   247
5.2.1   Pen Characteristics   247
5.2.2   Setting Pen Characteristics   250
5.2.3   Hiding and Showing the   Pen   251
5.2.4   Drawing Lines   252
5.3   Drawing Shapes   254
5.3.1   Basic Drawing Operations   254
5.3.2   Drawing Rectangles   255
5.3.3   Drawing Rounded Rectangles   256
5.3.4   Drawing Ovals   258
5.3.5   Drawing Arcs and Wedges   260
5.3.6   Drawing Polygons   263
5.3.7   Drawing Regions   264
5.4   Pictures and Icons   265
5.4.1   Picture Records   265
5.4.2   Defining Pictures   266
5.4.3   Drawing Pictures   267
5.4.4   Icons   268

Reading notes: Source is a table of contents with no advertised products, prices, or dates Chapter numbering and page references in the table of contents are interleaved with section numbers and may not follow a clear reading order

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/6abc15a14004ec9ed20a9d370b05eacc477a1e945293339a21d599cdaef0fad6/Macintosh_Revealed_2nd_Edition_Volume_One_1987.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-macintosh-revealed-2nd-edition-volume-one-1987-8b822d/2.md)
