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


GetODRefCntObjectDestructor

Retrieves a destructor for a reference-counted object.

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

ODRefCntObjectDestructor (Environment* ev, ODRefCntObject* refCntObj)
{
   refCntObj->Release(ev);
}
If you subclass ParameterSet, do not override this method.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996