Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Programmer's Guide to MacApp /
Chapter 1 - MacApp Overview


MacApp Sample Applications

MacApp is distributed with a number of sample applications that demonstrate how to use the MacApp class library. You can build the sample applications to see what a feature looks like in a running application, then examine the code to see how the feature was implemented. The type of application you build depends on the type of computer your application will run on.

Types of Macintosh Computers

Macintosh computers currently are of two types:

If an application is built with 68K code, it is said to run native on a 68K machine. The application will also run on a Power Macintosh computer, but only in emulation mode--the Power Macintosh computer executes 68K processor instructions in software.

An application built with PowerPC code will run native on a Power Macintosh computer but will not run at all on a 68K-based machine. But a native Power Macintosh application will run much faster on a Power Macintosh computer than will the 68K version of the same application.

A third type of application, called a fat application, has 68K code in its resource fork and Power Macintosh code in its data fork. It takes up more room on disk than either of its skinnier cousins, but it can run native on either machine.

With MacApp, you can build any type of application, both for your own applications and for the sample applications distributed with MacApp. Appendix A explains how to build different types of applications in the MPW environment.

The Simplest MacApp Application

The simplest MacApp application, called the Nothing application, contains only one code file, with less than 150 lines of code. Yet when linked with MacApp, Nothing can do all of the following:

Other Sample Applications

MacApp includes these additional sample applications:


Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996