September 2002
Intermediate to advanced
1272 pages
31h 12m
English
Like the other standard application panels, NSColorPanel functionality can be extended by attaching an accessory view. To do this, use the -setAccessoryView: method. Pass the NSView that contains the controls as the argument. This is discussed in more depth in Chapter 9, “Applications, Windows, and Screens,” which discusses standard System panels.
Although Apple provides basic color picking methods, applications can also require custom color selection behavior. A custom color picker class needs to implement both the NSColorPickingDefault and NSColorPickingCustom protocols. Because the class NSColorPicker already implements the NSColorPickingDefault protocol, most custom pickers are implemented ...
Read now
Unlock full access