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: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 7 - Classes and Methods / ParameterSet


GetODPtrDestructor

Retrieves a destructor for an ODPtr object.

ParamDestructorUPP GetODPtrDestructor ();
return value
A pointer to a destructor function that takes two parameters: an environment pointer and a pointer of type ODPtr*; the function returns no value. The function has the following form:
void ODPtrDestructor (Environment* ev,
ODPtr* odPtr);
DISCUSSION
You call this method to retrieve a destructor function suitable for an ODPtr object. The destructor function disposes of the ODPtr object, as shown in the following example:

ODPtrDestructor (Environment* ev, ODPtr* odPtr)
{
   ODDisposePtr(odPtr);
}
If you subclass ParameterSet, do not override this method.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996