![]() |
ComponentInstance |
Header: Components.h |
typedef ComponentInstanceRecord ComponentInstance;
The Component Manager identifies each instance of a component by a component instance, defined by this data type. A component has a single component identifier, but it can have multiple component instances. The OpenDefaultComponent and OpenComponent functions return a component instance. The CloseComponent, GetComponentVersion, ComponentFunctionImplemented, GetComponentInstanceError, SetComponentInstanceError, GetComponentInstanceStorage, SetComponentInstanceStorage, SetComponentInstanceA5, GetComponentInstanceA5, and DelegateComponentCall functions all use component instances to specify particular connections with a component. To use a component function, your application also specifies a component instance.
Although conceptually component identifiers, defined by the Component data type, and component instances serve different purposes, Component Manager functions (with the exception of DelegateComponentCall) allow you to use component identifiers and component instances interchangeably. If you do this, you must always coerce the data type appropriately.
A component instance is defined by the data type ComponentInstance:
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)