Release
TheReleasemethod decrements an object's reference count by 1.
void Release ();DISCUSSION
When you no longer need an object reference that you obtained by calling a factory method (for example, the draft'sCreatePartorAcquirePartmethod), you should call the object'sReleasemethod. In addition, you should balance every call to the object'sAcquiremethod with a call to itsReleasemethod.OVERRIDING
Every subclass ofODRefCntObjecthas its own version of theReleasemethod that tells the draft to release the object from memory if the object's reference count becomes 0. Your subclass ofODPartmust override this method. The override method must call its inheritedReleasemethod at the beginning of its implementation.SEE ALSO
TheODPartclass (page 459).
"The Release Method" on page 113 in OpenDoc Cookbook.
Table 2-1 on page 90 in OpenDoc Programmer's Guide.
"Responding to a Removed Display Frame" on page 112 in OpenDoc Programmer's Guide.
"Removing an Embedded Frame" on page 122 in OpenDoc Programmer's Guide.
"Undo and Embedded Frames" on page 264 in OpenDoc Programmer's Guide.
"Using an Extension" on page 444 in OpenDoc Programmer's Guide.
"Reference-Counted Objects" on page 468 in OpenDoc Programmer's Guide.
"Lazy Internalization" on page 473 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help