# Mastering the Macintosh Toolbox — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/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-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-c19ef2af43a786fdf8dc0d781d01a7ae205d45dce053dbb8f331768ea2d1a90c)

Transcribed text:

Osborne McGraw-Hill

MASTERING THE
Macintosh™
TOOLBOX

WINDOWS
ICONS
GRAPHICS
MENUS
CURSOR
MOUSE

DAVID B. PEATROY & DATATECH PUBLICATIONS

Image description: A book cover with a cream background, a red top band, red script title, and a multicolored isometric cube in pink, orange, and blue-violet with colorful scattered words WINDOWS, ICONS, GRAPHICS, MENUS, CURSOR, and MOUSE around it.

Reading notes: Scattered colored words around the cube are read in approximate order and may not reflect exact reading sequence. The small 'TM' mark after Macintosh is treated as trademark symbol.

Languages: English

[Original Image 1](https://www.vintageapple.net/files/2f11085ff678873532173b4ec71f5720cb277edf64f4dfa28cf15a36f8d565c1/63458e2da5293bdd32803473.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-e0634c63b6a7aac00b84d02ee653c49b3a9602ddc0885b6d2f1d99ce51f4a8dc)

Transcribed text:

Osborne McGraw-Hill

MASTERING THE

Macintosh™

TOOLBOX

WINDOWS
ICONS
MENUS
GRAPHICS
CURSOR
MOUSE

DAVID B. PEATROY & DATATECH PUBLICATIONS

Image description: A book cover with a red top band, large black and red script title, and a pastel isometric cube in pink, orange, and purple surrounded by colorful scattered keywords such as WINDOWS, ICONS, MENUS, GRAPHICS, CURSOR, and MOUSE.

Reading notes: Scattered keyword labels around the cube are arranged along curves and may be read in a non-linear order; the reading order given is approximate. The Macintosh™ script title and the Osborne McGraw-Hill logo are stylized, so the exact glyph forms are approximate.

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-c403dadd9282f0f8e0ce4b25d3c39bbab64fcd64041a5286cc51cdc9363d8829)

Transcribed text:

Mastering The Macintosh™ Toolbox

David B. Peatroy
and
DATATECH Publications

Osborne McGraw-Hill
Berkeley, California

Image description: A title page with a large bold italic title above a horizontal rule, author credits in the center, and publisher line near the bottom on a yellowed page, with faint body text visible in the background.

Reading notes: Faint background body text above and below the title is too light to transcribe reliably and was omitted. Publisher line 'Osborne McGraw-Hill' has 'McGraw-Hill' in bold, reproduced as plain text in transcript.

Languages: English

[Original PDF page 2](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-c064bc2134468088b524aff303fd647684936b00995b8c4e205d489b54b2b28c)

Disclaimer of Warranties And Limitation of Liabilities

Transcribed text:

Disclaimer of Warranties
And Limitation of Liabilities
Mastering
The authors have taken due care in preparing this book and the programs in it, including
research, development, and testing to ascertain their effectiveness. The authors and the
publisher make no expressed or implied warranty of any kind with regard to these pro-
grams or the supplementary documentation in this book. In no event shall the authors or
the publishers be liable for incidental or consequential damages in connection with or
arising out of the furnishing, performance, or use of any of these programs.
COPYRIGHT. This collection of programs and their documentation is copyrighted. You
may not copy or otherwise reproduce any part of any program in this collection or its
documentation, except that you may load the programs into a computer as an essential
step in executing the program on the computer. You may not transfer any part of any
program in this collection electronically from one computer to another over a network.
You   may   not distribute copies of any program or its documentation to others. Neither any
program nor its documentation may be modified or translated without written permission
from Osborne/McGraw-Hill.
NO   WARRANTY   OF   PERFORMANCE. Osborne/McGraw-Hill does not and cannot war-
rant the performance or results that   may   be obtained by using any program in this book.
Accordingly, the programs in this collection and their documentation are sold   "as   is"
without warranty as to their performance, merchantability, or fitness for any particular
purpose. The entire risk as to the results and performance of each program in the collec-
tion is assumed by you.   Should   any program in this collection prove defective, you (and not
Osborne/McGraw-Hill or its dealer) assume the entire cost of all necessary servicing,
repair, or correction.
LIMITATION   OF   LIABILITY. Neither Osborne/McGraw-Hill nor anyone else who has
been involved in the creation, production, or delivery of these programs shall be liable for
any direct, incidental, or consequential benefits, such as, but not limited to, Joss of antici-
pated profits or benefits, resulting from the use of any program in this collection or aris-
ing out of any breach of any warranty.   Some   states do allow the exclusion or limitation of
direct incidental or consequential damages, so the above limitation may not apply to you.
Published by
Osborne McGraw-Hill
2600   Tenth   Street
Berkeley, California   94710
U.S.A.
For information on translations and book distributors outside of the   U.S.A.,   please write
to Osborne McGraw-Hill at the above address.
Macintosh, MacWrite, and MacPaint are trademarks of Apple Computer, Inc.
Apple is a registered trademark of Apple Computer, Inc.
IBM is a registered trademark of International Business Machines Corp.
the   Macintosh™   Toolbox
Copyright © 1986 by McGraw-Hill, Inc. All rights reserved. Printed in the   United   States
of America. Except as permitted under the Copyright Act of 1976, no part of this publica-
tion   may   be reproduced or distributed in any form or by any means, or stored in a data
base or retrieval system, without the prior written permission of the publisher, with the
exception that the program listings may be entered, stored, and executed in a computer
system, but they may not be reproduced for publication.
1234567890   DODO   8998765
ISBN   0-07-881203-8
Jonathan Erickson, Acquisitions Editor
Paul Jensen, Technical Editor
Carol Hamilton, Copy Editor
Deborah Wilson, Composition
Yashi   Okita,   Cover Design
Jan Benes, Text Design

Reading notes: Some words are split or spaced irregularly in the OCR text, such as 'Joss' for 'loss' and 'the   Macintosh™   Toolbox'. The reading order of the title block and the disclaimer heading is uncertain.

Printed product names: Macintosh · MacWrite · MacPaint · Apple · IBM

Printed dates: 1986 · 1976

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-8a8311714ad6cfbce78f403edcbcb2166fa25d7148d22a0158a5787278f9968a)

Transcribed text:

c   0   N   T   E   N   T   s
Introduction   vii
CHAPTER 1
Getting Started   1
CHAPTER   2
Macintosh Graphics Concepts   25
CHAPTER   3
Of   Mice and Cursors   41
CHAPTER   4
The Icon Editor   53
CHAPTER   5
Primitive Window Management   75
CHAPTER   6
Advanced Macintosh Programming   87
APPENDIX   A
A Reference Guide   119

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-3d382debffa971143ec2121cd9b9a292ca3b1d4022825ec0639cc04d81cc6de9)

Transcribed text:

APPENDIX   B
Mathematical Systems   and   Concepts   159   ·
APPENDIX   C
Macintosh Trap Locations   169
Glossary   1sa
Index   197

Reading notes: Glossary page number reads '1sa', possibly OCR error for '185' or similar

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-6b798cdb2ee76e32e44ed3924249de2273f60fbe03edf1f16b0519ec57dcb9ff)

Transcribed text:

A   C   K   N   0   W   L   E   D   G   M   E   N   T   S
The author would like to acknowledge the following people and
companies for their support and assistance in the preparation of this
book:
Mike Burns, Think Technologies, for providing technical informa-
tion about programming in Macintosh   Pascal.
Bryan   J.   Cummings,   DATATECH   Publications,   for   providing
technical assistance, hours of manuscript preparation, preliminary
document preparation, and final organization.
Barbara Koalkin, Apple Computer, Inc., for supplying the Macin-
tosh   Pascal   software disk, documentation, and assistance.
Arnold   Kunert,   DATATECH   Publications,   for   coordinating the
editing, restructuring, and organization of the text.
Alexis   Peatroy,   my loving wife, for those times I needed her most.
Lawrence   Pollack,   DATATECH   Publications,   for providing numerous
hours of instruction in the finer points of   Pascal.

Reading notes: Possible OCR spacing artifacts in headline and some words (e.g., 'Barbara Koalkin', 'Alexis Peatroy' may be misspelled)

Printed product names: Macintosh Pascal

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-95c8ae345ee56202f8dceac628ce7f43c983de982c6551a5b60c60e38f5224c1)

Transcribed text:

For Mum and Alexis

Image description: A plain cream page with a centered italic dedication line in the middle and faint, mostly illegible letterspaced capitals and faint text lines near the top and in the lower middle.

Reading notes: Faint letterspaced capital text near the top of the page is largely illegible and not transcribed. Faint lines of text in the lower-middle area appear too light to read and are not transcribed. The dedication line 'For Mum and Alexis' is the only clearly legible text.

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-f0650d5cd2f7a0ed3717f3fc18f82e406c979e90a396930b2ec7f2bec271755f)

Transcribed text:

N   T   R   0   D   u   c   T   0   N
On   January   22nd, 1984, during the broadcast of the eighteenth
Superbowl, a   television   commercial   with   a strangely   Orwellian
quality was seen by millions of people across the United States. The
commercial was subsequently discussed in network newscasts and
reported   upon   in   major   newspapers   and   magazines.   The   news?
Apple Computer, Inc., of Cupertino, California, had just unveiled its
Macintosh computer.
The Macintosh is not just another personal computer in an already
overcrowded marketplace. The philosophy behind the Macintosh is
to bring the power of a personal computer to the vast majority of
people who have neither the time nor the inclination to learn what it
takes to operate a conventional computer effectively.
The Macintosh, unlike other popular computers, is intended to be
the first   "intuitive"   personal computer. Its operation is designed to
be as simple as possible, with the required instructions needed to
run the machine always close at hand. In this respect, the Macintosh
is vastly different from other personal computers.
The Macintosh and its software are designed to   inform   the person
using it. And as such, Macintosh software neither resembles nor
behaves like software written for a machine like, for example, the
IBM   PC.   Whereas the IBM requires the person using the computer
to type commands through a keyboard into the computer to perform
a task,   the Macintosh uses pictures, called icons, that represent
commonly used functions and items, and pull-down menus, that list
all the commands available at a given time. The chief benefit of
Apple's approach is that a complete novice can, with a little persev-
erance and common sense, put a machine like the Macintosh to use
vii

Reading notes: Possible reading-order concern: "vii" page marker at end of extract Heading 'N T R 0 D u c T 0 N' is spaced and may be OCR-distorted; read as INTRODUCTION

Printed product names: Macintosh · IBM PC

Printed dates: January 22nd, 1984

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-533d6b1971b48b63b4f1f57d923274028ce5d7145cf0ac8662d12ec398996207)

Transcribed text:

viii   MASTERING THE   MACINTOSH   TOOLBOX
much more quickly than he or she could an IBM PC.
Of   course, the way the Macintosh interacts with its user and per-
forms its tasks is through a combination of software and hardware.
Software allows us to communicate with the computer, letting us tell
it what we want to do, then carrying out our instructions. Hardware
lets us communicate our instructions to the software within the
computer.   Perhaps   the most unusual feature of the Macintosh's
hardware, next to its dazzling on-screen graphics, is the mouse, a
rolling desktop pointer that allows users to bypass the need to type
commands at the   keyboard   and   lets them   carry out operations
simply by selecting commands with the pointer on the screen.
It   is beyond the scope of this book to teach you all you need to know
about Macintosh software and how to write it. However, this book
will show you that learning to write software is not difficult and that
learning to program the Macintosh can be an extremely enjoyable
pastime.
This book concentrates on the interaction of the mouse with the
computer and demonstrates how best to utilize the mouse for func-
tions like menu control and graphics. The programming language
chosen for this book is Macintosh   Pascal.   Mastering the M acintosh
Toolbox   assumes that you have at least a rudimentary understanding
of   Pascal   and are familiar with some version of the language on
either a personal computer or minicomputer.
Pascal   has been chosen for two r easons. First, it is one of a few
languages available for the Macintosh that is sophisticated enough to
take full advantage of the Toolbox, the Macintosh's internal well-
spring of programming routines, aids, and other intrinsic hardware
capabilities. Second,   Pascal   is a terrific language to learn because it
encourages the principles of sound and logical programming.
This book assumes that you are familiar with the Macintosh envi-
ronment of windows, pull-down menus, selections, and the mouse.   If
you are unsure of how the Macintosh environment works, you should
familiarize yourself with   it by using applications programs like
Mac   Write and MacPaint. Aside from being easy and fun to use,
these programs beautifully illustrate the concepts behind the Macin-
tosh.
You will also find a reference section comprised of three appen-
dixes to satisfy your demand for quick answers to syntax and usage
questions about Macintosh Pascal.   Of   course, the final authority is
the reference guide that comes with Macintosh   Pascal.

Reading notes: Header and running title spacing is irregular, so the exact heading text is uncertain. Some words in the running text show inconsistent spacing, such as 'M acintosh' and 'r easons'.

Printed product names: Macintosh · IBM PC · Macintosh Pascal · Mastering the Macintosh Toolbox · Toolbox · Pascal · Mac Write · MacPaint

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-22f2549bba6352754aebc5d758c06a1a49950396b08b646225b13db5f39204a9)

Getting Started

Transcribed text:

c   H   A   p   T   E   R
Getting   Started
There are many reasons for learning to program a computer. Some
people learn to program because they are considering a career in
computers. Others learn to program because they require a specific
piece of software for which there is no commercially available coun-
terpart. Some want to learn to program so they can customize soft-
ware that is available for another computer, but not their own. In
short, there are probably as many reasons to learn to program a
computer as there are computer users. Learning to program a com-
puter is not that difficult; like eating an elephant, it must be done
one   byte   at a time.
Just as there are many reasons for learning to program a comput-
er, there are many things that a computer may be programmed to
do. Bookkeeping and accounting are two popular examples. Word
processing, using a computer to write and edit text, is a requirement
for many. Some people like to use their computers for entertain-
ment, and some even write their own games. Parents often use com-
1

Reading notes: Chapter label 'CHAPTER' rendered with irregular letter spacing; heading reading order taken as 'Getting Started'.

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/1#scan-151017a42b3b5fff73fab217376a45c96b38d25c97aa293cbe2816dc3556c97a)

MASTERING THE MACINTOSH TOOLBOX

Transcribed text:

·,'.
2   MASTERING THE   MACINTOSH   TOOLBOX
puters to teach their children educational basics and to familiarize
them with computer use.
The Macintosh is particularly suited to various kinds of programs
because of its inherent ease of use and the relative ease with which a
programmer can create remarkable graphics.
Many of the programs that create the unique look of the Macin-
tosh are available to the programmer working with Macintosh Pas-
cal. These programs are located in what is called the   Toolbox;   they
make up part of what is known as the   Macintosh User Interface.   A
user interface is the way the person using the computer, the user,
communicates with the computer. The Toolbox programs help con-
trol the look of the Macintosh windows, allow the use of the desk
accessories, control the mouse, and govern the overall appearance of
the Macintosh desktop. In fact, there are about   500   different Toolbox
programs stored in a special area of the Macintosh's Read-Only
memory   (ROM).
Commercial Macintosh programs (also called applications) like
MacWrite and MacPaint are generally developed on an Apple Lisa
computer using a special Pascal development language.   Once   writ-
ten, the programs are transported to the Macintosh. The Macintosh
Pascal used throughout this book is not a complete development Pas-
cal.   It   has direct access to some, but not all, of the support programs
contained in the Toolbox. As a result, programs written on the
Macintosh with Macintosh Pascal run more slowly than commer-
cially developed programs and contain limited use of such special
Macintosh features as windows and menus.
Interpreters versus   Compilers
Macintosh programs written with the Lisa Pascal development sys-
tem use a   compiled   version of Pascal. Compiled programs take the
source code   written by a programmer and convert it into what is
called   native code.   Native code is the most fundamental language
with   which   we   can   communicate with   a   computer;   it consists
entirely of l's and O's. While native code produces the fastest execut-
able code on a computer, it is too tedious to program entire applica-
tions with.   There~ore,   languages like Pascal, called   high-level

Reading notes: Running header '2 MASTERING THE MACINTOSH TOOLBOX' may be a page header rather than a primary heading Text is cut off mid-sentence at the end of the excerpt Apparent OCR artifacts such as 'l's and O's' and 'There~ore' may be damaged characters

Printed product names: MacWrite · MacPaint · Apple Lisa

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/039a3efc29121ae3d4e527a54d1e561a1eac4a8c84c5806db89935da4831a545/Mastering_The_Macintosh_Tool_Box_1986.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-mastering-the-macintosh-tool-box-1986-45a8cc/2.md)
