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 CountComponentInstances function allows you to determine the number of open connections being managed by a specified component. This function can be useful if you want to restrict the number of connections for your component or if your component needs to perform special processing based on the number of open connections.

FUNCTION CountComponentInstances (aComponent: Component): LongInt;
The component for which you want a count of open connections. You can use the component instance that your component received in its open request to identify your component.
The CountComponentInstances function returns the number of open connections for the specified component.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996