Important: The information in this document is obsolete and should not be used for new development.
MakeIconCache
You can use theMakeIconCachefunction to get a handle to an empty icon cache, to which you can add icon data using theLoadIconCachefunction.
FUNCTION MakeIconCache (VAR theHandle: Handle; makeIcon: IconGetter; yourDataPtr: UNIV Ptr): OSErr;
theHandleMakeIconCacheallocates 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
MakeIconCachereturns a handle to an empty icon cache in the parametertheHandle. TheMakeIconCachefunction associates the icon getter function and the value specified in the parametersmakeIconandyourDataPtrwith the new icon cache.RESULT CODES
noErr 0 No error memFullErr -108 Not enough memory in heap zone