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

This chapter describes how you can use the Component Manager to allow your application to find and utilize various software objects (components) at run time. It also discusses how you can create your own components and how you can use the Component Manager to help manage your components. You should read this chapter if you are developing an application that uses components or if you plan to develop your own components.

The rest of this chapter

Several of the sections in this chapter are divided into two main topics: one describes how applications can use components, and one describes how to create your own components. If you are developing an application that uses components, you should focus on the material that describes how to use existing components--you do not need to read the material that describes how to create a component. If you are developing a component, however, you should be familiar with all the information in this chapter.

For information on a specific component, see the documentation supplied with that component.


Chapter Contents
Introduction to Components
About the Component Manager
Using the Component Manager
Opening Connections to Components
Opening a Connection to a Default Component
Finding a Specific Component
Opening a Connection to a Specific Component
Getting Information About a Component
Using a Component
Closing a Connection to a Component
Creating Components
The Structure of a Component
Handling Requests for Service
Responding to the Open Request
Responding to the Close Request
Responding to the Can Do Request
Responding to the Version Request
Responding to the Register Request
Responding to the Unregister Request
Responding to the Target Request
Responding to Component-Specific Requests
Reporting an Error Code
Defining a Component's Interfaces
Managing Components
Registering a Component
Creating a Component Resource
Establishing and Managing Connections
Component Manager Reference
Data Structures for Applications
The Component Description Record
Component Identifiers and Component Instances
Routines for Applications
Finding Components
Opening and Closing Components
Getting Information About Components
Retrieving Component Errors
Data Structures for Components
The Component Description Record
The Component Parameters Record
Routines for Components
Registering Components
Dispatching to Component Routines
Managing Component Connections
Setting Component Errors
Working With Component Reference Constants
Accessing a Component's Resource File
Calling Other Components
Capturing Components
Targeting a Component Instance
Changing the Default Search Order
Application-Defined Routine
Resources
The Component Resource
Summary of the Component Manager
Pascal Summary
Constants
Data Types
Routines for Applications
Routines for Components
Application-Defined Routine
C Summary
Constants
Data Structures
Routines for Applications
Routines for Components
Application-Defined Routine
Assembly-Language Summary
Trap Macros
Result Codes

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996