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 /
Preface - About This Book


Organization of MacApp Source Code

The source code in the MacApp class library is written almost entirely in C++. Related classes and support code are grouped by function and stored in standard C++ header files (such as UAppleEvents.h) and implementation files (such as UAppleEvents.cp). Largely for historical reasons, these header and implementation pairs are referred to as units, and many start with the letter U. (For more information on MacApp file-naming conventions, see Table A-1, beginning on page 676.)

A unit typically contains one or more related classes that perform the central function of the unit, along with support classes such as iterator classes and command classes. For example, the UDocument unit

Units typically contain additional type definitions, constant declarations, external and static variables declarations, and many other constructs.

Many units are automatically included in every MacApp application, while others are optional--your application includes them only if it needs the function provided by the unit. For example, MacApp's printing capability is optional. To use it, your application must include the UPrinting unit.

Appendix C lists MacApp's units and provides a brief description of the function provided by each unit.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996