Important: The information in this document is obsolete and should not be used for new development.
MakeIconCache
You can use theMakeIconCache
function to get a handle to an empty icon cache, to which you can add icon data using theLoadIconCache
function.
FUNCTION MakeIconCache (VAR theHandle: Handle; makeIcon: IconGetter; yourDataPtr: UNIV Ptr): OSErr;
theHandle
MakeIconCache
allocates memory for a new icon cache and returns a handle to the new icon cache in this parameter.makeIcon
- A pointer to an icon getter function to associate with the icon cache.
yourDataPtr
- A pointer to the data to associate with the icon cache.
DESCRIPTION
MakeIconCache
returns a handle to an empty icon cache in the parametertheHandle
. TheMakeIconCache
function associates the icon getter function and the value specified in the parametersmakeIcon
andyourDataPtr
with the new icon cache.RESULT CODES
noErr 0 No error memFullErr -108 Not enough memory in heap zone