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
Application-Defined Routines / Icon Action Functions


The action parameter of ForEachIconDo must point to a function that uses this syntax:

FUNCTION MyIconAction (theType: ResType; VAR theIcon: Handle;
                       yourDataPtr: Ptr): OSErr;
The resource type of the icon.
A handle to the icon on which to perform the operation.
A pointer to data as specified in the yourDataPtr parameter of
the ForEachIconDo function. When your application calls ForEachIconDo, it typically provides in the yourDataPtr parameter a value that identifies the action your function should perform.
The ForEachIconDo function uses your icon action function to perform actions on specified icons in an icon suite. Your icon action function should return a result code indicating whether it sucessfully performed the action on the icon.

noErr0No error
For a description of the ForEachIconDo function, see page 5-38.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996