Component Manager


You can use the Component Manager to allow your application to find and utilize various software objects (components) at run time. You can create your own components, and you can use the Component Manager to help manage your components. A component is a piece of code that provides a defined set of services to one or more clients. Applications, system extensions, as well as other components can use the services of a component. A component typically provides a specific type of service to its clients. For example, a component might provide image compression or image decompression capabilities; an application could call such a component, providing the image to compress, and the component could perform the desired operation and return the compressed image to the application. The Component Manager provides access to components and manages them by, for example, keeping track of the currently available components and routing requests to the appropriate component.

Gestalt Constants

You can check for version and feature availability information by using the Component Manager selectors defined in the Gestalt Manager. For more information, see Gestalt Manager.


Result Codes

The result codes defined by the Component Manager are listed below.

var invalidComponentID: Int

Invalid component ID.

var validInstancesExist: Int

This component has open connections.

var componentNotCaptured: Int

This component has not been captured.

var componentDontRegister: Intvar unresolvedComponentDLLErr: Intvar retryComponentRegistrationErr: Int
var badComponentSelector: Int

Component does not support the specified request code.

var badComponentInstance: Int

Invalid component passed to Component Manager.