A Hobbyist's Guide to Programming the Mac OS in Pascal
Version 1.2 (Frozen) Demonstration Programs
Overview
CodeWarrior 1.3 was the version used for the final compilation of all demonstration programs.
All demonstration programs may be run within CodeWarrior; however, because of the nature of the demonstration, the program associated with Chapter 8 must be run as a built (i.e., double-clickable) application. Also note that certain aspects of the program associated with Chapter 14 can only be explored if it is run as a built application.
There is no demonstration program directly associated with Chapter 7. (The demonstration program associated with Chapter 8 addresses the subject matter of both Chapter 7 and Chapter 8.)
Binaries Removed
To reduce demonstration program download size to the minimum, all binaries have been removed from the CodeWarrior projects. This simply means that you will need to re-compile the programs before they can be run within CodeWarrior.
Preferences Settings
Macintosh Pascal source code files assume a tab size setting of 2 (see Edit / Preferences... / Editor / Fonts and Tabs / Tab Size).
Project Settings
For all applications (68K and PowerPC), the Language, Code Generation, and Linker settings within the CodeWarrior Project Settings dialog are the factory settings, except as follows:
• Language Settings / Pascal Language / Language Info: - Factory setting plus Uses Propagation
and Case Sensitive Identifiers on. Also, in
FloatersPascalPPC only, Relax Pointer
Compatibility on.
• Language Settings / Pascal Warnings / Warnings Info: - All on.
For the 68K LDEF, CDEFs, and WDEF, the Language, Code Generation, and Linker settings within the Project Settings dialog are the factory settings except as follows:
• Language Settings / Pascal Language / Language Info: - Factory setting plus Uses Propagation
and Case Sensitive Identifiers on.
• Language Settings / Pascal Warnings / Warnings Info: - All on.
• Linker /68K Linker / LinkerInfo: - Link Single Segment on.
For the PowerPC (i.e., accelerated resource) LDEF, CDEFs, and WDEF, the Language, Code Generation, and Linker settings within the Project Settings dialog are the factory settings, except as follows:
• Language Settings / Pascal Language / Language Info: - Factory setting plus Uses Propagation
and Case Sensitive Identifiers on.
• Language Settings / Pascal Warnings / Warnings Info: - All on.
To avoid unnecessary resource file and source code file duplication, and thus keep the download size to a minimum, the folder chap23pascal_demo contains only those chap01pascal_demo to chap22pascal_demo files which have had to be replaced (project files) or modified (source code files) to permit compilation as native PowerPC code. Thus the folders within chap23pascal_demo contain:
• The CodeWarrior PPC project files for the PowerPC versions of all demo applications.
• The CodeWarrior PPC project files for the PowerPC (i.e., accelerated resource) versions of the
LDEF, CDEFs, and WDEF.
• Those source code files which have had to be modified, in accordance with the required changes
listed at Chapter 23 of Macintosh Pascal, to permit compilation as native PowerPC code.
• The resource files containing the PowerPC (i.e., accelerated resource) versions of the
LDEF, CDEFs, and WDEF.
Note that all PowerPC-specific files and folders have "PPC" appended to their titles.
To create a complete PowerPC version of all demo program folders, you should copy the resource and source code files missing from the various folders in the chap23pascal_demo folder from the relevant chap01pascal_demo to chap22pascal_demo folder. The relevant PPC project window shows the files required.