Skip to content

greenonline/Code_from_Macintosh_Programming_Secrets_1988

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code_from_Macintosh_Programming_Secrets_1988

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.

Using Think Pascal

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:


Other Macintosh related repos: