Carbon


Component

Header: Components.h

typedef ComponentRecord Component;

The Component Manager identifies each component by a component identifier, defined by this data type. A component has a single component identifier, but it can have multiple component instances. The functions FindNextComponent, OpenComponent, GetComponentInfo, GetComponentIconSuite, UnregisterComponent, CountComponentInstances, SetComponentRefcon, GetComponentRefcon, OpenComponentResFile, CaptureComponent, UncaptureComponent, and SetDefaultComponent use component identifiers to specify a particular component.

Although conceptually component identifiers and ComponentInstance 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 identifier is defined by the data type Component:


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)