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


Managing Component Connections

The Component Manager provides a number of routines that help your component manage the connections it maintains with its client applications and components.

Use the SetComponentInstanceStorage procedure to inform the Component Manager of the memory your component is using to maintain global data for a connection. Whenever the client application issues a request to the connection, the Component Manager provides to your component the handle to the allocated memory for that connection along with the parameters for the request. You can also use the GetComponentInstanceStorage function to retrieve a handle to the storage for a connection.

Use the CountComponentInstances function to count all the connections that are currently maintained by your component. This routine is similar to the CountComponents routine that the Component Manager provides to client applications and components.

Use the SetComponentInstanceA5 procedure to set the A5 world for a connection. Once you set the A5 world for a connection, the Component Manager automatically switches the contents of the A5 register when your component receives a request for that connection. When your component returns to the Component Manager,
the Component Manager restores the A5 register. Your component can use the GetComponentInstanceA5 function to retrieve the A5 world for a connection.


Subtopics
SetComponentInstanceStorage
GetComponentInstanceStorage
CountComponentInstances
SetComponentInstanceA5
GetComponentInstanceA5

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996