Important: The information in this document is obsolete and should not be used for new development.
Chapter 2 -
This chapter describes two basic features that are used by all applications built with MacApp:
Basic Operations
- Multiple inheritance. MacApp is written in C++, with broad support for multiple inheritance. Many of MacApp's key classes use multiple inheritance, so your classes that descend from MacApp classes will use it too.
- The TObject class. The
TObject
class is the common ancestor for most classes in the MacApp class library. Among other things it provides support for runtime type information (RTTI) operations, creating and deleting objects, and establishing dependency relationships between objects.
Chapter Contents
- Multiple Inheritance
- Runtime Type Information
- The ClassDesc Class
- Inserting RTTI Information Into Your Classes
- Initializing RTTI Information
- Registering Class Information
- Including Code for a Class
- Creating New Objects by Signature, Class ID, or Class Name
- Dynamic Casting
- Virtual Destructors
- TObject
- RTTI Fields and Methods
- Initializing and Freeing Objects
- Creating and Deleting Objects
- Dependency Relationships
- Reading and Writing Streams
- Cloning Objects
- Implementation of Cloning
- Complications of Cloning
- Comparing Objects
- The SubClassResponsibility Method