Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996

Get information on Apple products.
Visit the Apple Store online or at retail locations.

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice