Code from the first edition of the book "Macintosh Programming Secrets", by Scott Knaster.
The examples are written in Pascal, and run in MPW.
You can find the first edition on Vintage Apple - Mac Programming
There is also a second edition (1992), which has code examples in C. Repo for that book coming shortly.
The libraries differ in Think Pascal and so you need to change the uses
line to
uses
{$LOAD Insider:MPW:Pinterfaces:Allinterfaces}
{$U Insider:MPW:Pinterfaces:MemTypes.p }
{MemTypes,}
Memory,
{$U Insider:MPW:Pinterfaces:QuickDraw.p}
{QuickDraw,}
QuickDraw,
{$U Insider:MPW:Pinterfaces:OSintf.p }
{OSintf,}
OSUtils, OSEvents,
{$U Insider:MPW:Pinterfaces:Toolintf.p }
{Toolintf,}
ToolUtils,
{$U Insider:MPW:Pinterfaces:Packintf.p }
{Packintf;}
Packages;
or just
uses
Memory, QuickDraw, OSutils, OSEvents, ToolUtils, Packages;
See also:
- Inside Macintosh Links
- Source code for Macintosh Programming Secrets - First Edition (1998)
- Source code for Macintosh Programming Secrets - Second Edition (1992)
- Errata - Macintosh Programming Secrets (1992)
Other Macintosh related repos:
- greenonline/Code_from_Symantec_C++_Programming_for_Macintosh_1994
- greenonline/Creation_from_Programmers_Guide_to_MPW_1990
- greenonline/Bug_fixes_for_the_hundredrabbits_repo
- greenonline/Code_from_Macintosh_Programming_Secrets_1988
- greenonline/Code_from_Macintosh_Programming_Secrets_1992
- Others: