17 File Objects Reference

17 Application-Defined Routines

This section describes the I/O methods you can implement to handle a custom object type. Your custom methods are reported to QuickDraw3D by your object metahandler. This section also describes how to write a file idler callback routine.

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.


3D Graphics Programming with QuickDraw 3D - 17 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker