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


GetSOMObjectDestructor

Retrieves a destructor for a SOM object.

ParamDestructorUPP GetSOMObjectDestructor ();
return value
A pointer to a destructor function that takes two parameters: an environment pointer and a pointer to a SOMObject; the function returns no value. The function has the following form:
void SOMObjectDestructor (Environment* ev,
SOMObject* somObject);
DISCUSSION
You call this method to retrieve a suitable destructor function for a SOM object. The destructor function deletes the object, as shown in the following example:

SOMObjectDestructor (Environment* ev, SOMObject* somObject)
{
   delete somObject;
}
If you subclass ParameterSet, do not override this method.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996