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: Advanced Color Imaging on the Mac OS /
Chapter 2 - Color Picker Manager


Writing Your Own Color Pickers

Macintosh system software provides color pickers that present ranges of colors from which users can choose particular colors. You can present these color pickers in dialog boxes, as described in "Using the Color Picker Manager" (page 2-7). This section describes how you can also use the Component Manager and the Color Picker Manager to create your own color pickers, which you implement as components.

When you create a color picker, the Color Picker Manager uses the Component Manager to request services from your color picker. For example, when the user selects a color from your color picker and clicks the OK button in its dialog box, the Color Picker Manager sends your color picker a request to provide the selected color.

You need to read this section only if you are creating a color picker for use in your own application or in those created by others. Before reading this section, you should read the preceding sections. For complete details on components and their structure, see the chapter "Component Manager" in Inside Macintosh: More Macintosh Toolbox. For complete information about dialog boxes, see the chapter "Dialog Manager" in Inside Macintosh: Macintosh Toolbox Essentials.


Subtopics
Creating a Component Resource for a Color Picker
Dispatching to Functions Defined by a Color Picker
Initializing Your Color Picker
Handling Events for Your Color Picker
Returning and Setting Color Picker Information

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 NOV 1996