Introduction to Color Programming Topics for Cocoa
The color classes let you specify colors and let users choose colors.
Organization of This Document
This topic contains the following articles:
“About Color Spaces” describes what color spaces are and which ones are available in the Application Kit.
“About Color Lists” describes what color lists are and how they’re used.
“Working With Color Spaces” discusses how you can create and convert colors using color-space objects and names and how you can create custom color spaces.
“Accessing a Color’s Components” describes how to retrieve a color’s individual components.
“Accessing System Colors” describes how to access colors that are controlled by user preferences.
“Using the System Control Tint” describes how to use the system-wide control tint in your custom views and control cells.
“Choosing Colors With Color Wells and Color Panels” describes how to let users select colors using color wells and the color panel.
“Choosing the Color Pickers in a Color Panel” describes how to choose which color pickers are available in the color panel and which one is selected.
“Adding Custom Color Pickers to a Color Panel” describes how to add color pickers to the color panel.
“Subclassing NSColor” describes how to create custom subclasses of NSColor.
“Storing NSColor in User Defaults” describes how to store colors in an application’s user defaults.