17 File Objects Reference
For information about defining an object metahandler and about the basic methods for handling custom objects, see the chapter "QuickDraw 3D Objects."<8bat>u
These I/O methods define how QuickDraw3D handles your custom objects when reading them from or writing them to a metafile. Each distinct object in a metafile consists of a root object that determines the object's type and default data. Some types of objects can have child objects attached to them, which add information to the parent object or override the parent's default data. A parent object and its child (or children) are encapsulated in a container, the first object in which is always the parent object.
To read a custom object from a file, you need to define a read data method for the custom object. To write a custom object to a file, you need to define two I/O methods for the custom object: a traversal method and a write method.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker