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: More Macintosh Toolbox /
Chapter 1 - Resource Manager / Resource Manager Reference
Resource Manager Routines


Disposing of Resources

The Resource Manager provides three procedures for disposing of resources. The ReleaseResource procedure releases the memory associated with a resource,
setting the handle's master pointer to NIL, thus making your application's handle to
the resource invalid. The DetachResource procedure sets a resource's handle in the resource map to NIL but keeps the resource data in memory. The RemoveResource procedure removes the resource's entry from the resource map in memory; the
Resource Manager removes the resource data from memory (and from the file's resource fork) when it updates the file's resource fork.


Subtopics
ReleaseResource
DetachResource
RemoveResource

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996