The MacApp Interim Manual Draft 4
The MacApp Interim Manual Draft 4
Macintosh · PDF
| Filename | The_MacApp_Interim_Manual_draft_4_19880614.pdf |
|---|---|
| Size | 21.19 MB |
| Subsection | developer / MacApp_2.0 |
| Downloads | 3 |
Contents
,
•® Macintosh® The
MacApp®
Interim Manual
(:'
Working Draft 4 (APDA)
June 14, 1988
©Apple Computer, Inc. 1988
S APPLE COMPUTER, INC.
This manual and the software
described in it are copyrighted, with
all rights reserved. Under the
copyright laws, this manual or the
software may not be copied, in
whole or in part, without written
consent of Apple, except in the
normal use of the software or to
make a backup copy of the
software. The same proprietary and
copyright notices must be affixed to
any permitted copies as were affixed
to the original. This exception does
not allow copies to be made for
others, whether or not sold, but all
of the material purchased (with all
backup copies) may be sold, given,
or loaned to another person. Under
the law, copying includes
translating into another language or
format.
You may use the software on any
computer owned by you, but extra
copies cannot be made for this
purpose.
©Apple Computer, Inc., 1988
20525 Mariani Avenue
Cupertino, CA 95014
(408) 996-1010
Apple, the Apple logo, LaserWriter,
Lisa, MacApp, and Macintosh are
registered trademarks of Apple
Computer, Inc.
APDA, MPW, MultiFinder,
RESEDIT are trademarks of Apple
Computer, Inc.
ITC Avant Garde Gothic, ITC
Garamond, and ITC Zapf Dingbats
are registered trademarks of
International Typeface Corporation.
Microsoft is a registered trademark
of Microsoft Corporation.
POSTSCRIPT is a registered
trademarlc of Adobe Systems
Incorporated.
Varityper is a registered trademark,
and VT600 is a trademarlc, of AM
International, Inc.
Simultaneously published in the
United States and Canada.
6/14/88
Table of
Contents
Preface
About This Manual ix
Prerequisites x
Hardware x
Software x
What you should already know x1
What this manual contains xii
How to use this manual xii
Notation xiii
Conventions in the MacApp code xiv
Other books you should have xiv
0
Chapter 1
Why MacApp?
1
What is MacApp? 2
Programming without MacApp 3
Programming with MacApp 4
The division of labor 5
The benefits of MacApp 7
Chopter2
An Introduction to Object-Oriented Programming 9
The big picture 10
Record types and record variables 12
Object classes and object instances 13
Flow of control in object-oriented programs 18
Working Draft 4 (APDA)
6/14/88
MacApp 2.0 Tutorial
Object classes 30
Inheritance 31
Method definitions 35
Override methods 36
Object instances 39
An instance method 40
Override methods 43
Override methods that don't call their inherited
method 43
Override methods that do call their inherited
method 44
Privacy between instances 47
Ramifications of object-oriented programming 47
Chapter3:
Object Pascal 49
Object Pascal file organization 50
Object class definitions 55
Field declarations 56
Method declarations 56
Override method declarations 58
Object Instances 59
Record handles and record instantiations 59
Instantiation through record variables 59
Instantiation through record pointers 60
Instantiation through record handles 60
Object references and object insta…
Showing first 3,000 characters of 484,615 total. Open the full document →