# Programmer’s Guide to MPW, Volume I — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-programmers-guide-to-mpw-1990-218da8/2)

## 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.

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-programmers-guide-to-mpw-1990-218da8/2#scan-7c99ad0df1cedf799c4e199adde10bef8ad0da0502cee19d0676e3bf23f8e7a8)

Transcribed text:

xii   ~   Contents
Invoking a Commando Dialog   209
Calling a Commando with Option-Enter   210
Calling a Commando with Option-;   211
Calling a Commando with the Commando Command   212
The   SetFile   Commando   213
The Commando Commando   213
Executing Commando Dialogs from the Menu   214
Editing a Commando   214
Creating   Your   Own   Commands   215
A Modified   UserStartup   Script   216
Conclusion   219
4.   The MPW Special Character   Set   221
The   MPW   Special   Character   Set   222
A Notorious Character   222
Blank Characters   224
The Comment Character   #   227
The Line-Continuation   Character()   228
The Escape Character   a   229
Selection Expressions   230
Delimiters   234
Regular Expression Operators   244
File Name Generation Operators   250
Arithmetic and Logical Operators   253
Special   Characters   Used   in Makefiles   260
Using   Special   Characters in   Scripts   261
The   Special   Characters at a Glance   264
Conclusion   275
~   PART   TWO:   Writing an   Application   277
5.   Event-Driven Programming   279
MPW   and the Event Manager   279
How Applications Detect Events   280
Calling the Toolbox Event Manager   281
How Applications   Process   Events   281

Reading notes: Source appears to be a table of contents with chapter and section headings only; no headline, product, price, or date fields are present.

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/f78e75eaf49e1dfb9b8459c649cfd147515695c278c84cc08df11320073e7e4f/Programmers_Guide_to_MPW_1990.pdf#page=11)

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-programmers-guide-to-mpw-1990-218da8/2#scan-b7b5472cac93eddb98f4692fa6bba7f19b96847f0f254acd982669c51816cba1)

Transcribed text:

~   Contents   xiii
The gHas   WaitN   extEvent Variable   283
Using   a   CASE   Statement in a Main Event Loop   283
The SystemTask   Call   283
WaitNextEvent and the System   7   Finder   284
The Event Queue   284
The Structure of an Event Queue Record   285
Syntax of GetNextEvent and WaitNextEvent   285
Calling   WaitNextEvent and GetNextEvent   286
The Event Record   286
Activate and   Update   Events   287
Mouse Events   288
Keyboard Events   288
Event Management in a Nutshell   288
Kinds of Events   288
Activate Events   288
Mouse events   289
Keyboard Events   290
Disk Events   297
·Auto-key Events   297
Update   Events   297
Null Events   298
Other kinds of Events   298
Event Priorities   299
Event Records   299
What an Event Record   Contains   300
Decoding the Event Record   300
The Event   Code   300
The Event Message   301
Modifier Flags   304
The Event Mask   306
The WaitNextEvent Call   308
Writing an Event Loop   309
Using   the gHasWaitNextEvent Variable   311
Setting gHasWaitNextEvent   311
Using   Gestalt   312
Gestalt Manager   Calls   313

Reading notes: Source appears to be a table of contents fragment with no advertised products, prices, or dates Leading and trailing lines may be truncated or damaged at the page boundary

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/f78e75eaf49e1dfb9b8459c649cfd147515695c278c84cc08df11320073e7e4f/Programmers_Guide_to_MPW_1990.pdf#page=12)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-programmers-guide-to-mpw-1990-218da8/1.md)
