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 5 - Icon Utilities / Icon Utilities Reference
Icon Utilities Routines / Working With Icon Caches


MakeIconCache

You can use the MakeIconCache function to get a handle to an empty icon cache, to which you can add icon data using the LoadIconCache 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 parameter theHandle. The MakeIconCache function associates the icon getter function and the value specified in the parameters makeIcon and yourDataPtr with the new icon cache.

RESULT CODES
noErr0No error
memFullErr-108Not enough memory in heap zone

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996