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 6 - Component Manager / Component Manager Reference
Routines for Components


Dispatching to Component Routines

This section discusses routines that simplify the process of calling subroutines within your component.

When an application requests service from your component, your component receives
a component parameters record containing the information for that request. That component parameters record contains the parameters that the application provided when it called your component. Your component can use this record to access the parameters directly. Alternatively, you can use the routines described in this section to extract those parameters and pass them to a subroutine of your component. By taking advantage of these routines, you can simplify the structure of your component code. For more information about the interface between the Component Manager and your component, see "Creating Components" beginning on page 6-12.

Use the CallComponentFunction function to call a component subroutine
without providing it access to global data for that connection. Use the CallComponentFunctionWithStorage function to call a component subroutine and to pass it a handle to the memory that stores the global data for that connection.


Subtopics
CallComponentFunction
CallComponentFunctionWithStorage

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996