O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSColorPicker — Mac OS X 10.0

Synopsis

This class implements the NSColorPickingDefault protocol. This class is used to add custom color pickers to the NSColorPanel, which allows applications to add new interfaces that users can use to choose colors.

image with no caption

@interface NSColorPicker : NSObject <NSColorPickingDefault>
                                  // Initializers
   - (id)initWithPickerMask:(int)mask 
                                 colorPanel:(NSColorPanel *)owningColorPanel;
                                  // Accessor Methods
   - (void)setMode:(int)mode;
                                  // Instance Methods
   - (void)attachColorList:(NSColorList *)colorList;
   - (NSColorPanel *)colorPanel;
   - (void)detachColorList:(NSColorList *)colorList;
   - (void)insertNewButtonImage:(NSImage *)newButtonImage 
                                 in:(NSButtonCell *)buttonCell;
   - (NSImage *)provideNewButtonImage;
   - (void)viewSizeChanged:(id)sender;
                                  // Methods Implementing NSColorPickingDefault
   - (id)initWithPickerMask:(int)mask 
                                 colorPanel:(NSColorPanel *)owningColorPanel;
   - (NSImage *)provideNewButtonImage;
   - (void)insertNewButtonImage:(NSImage *)newButtonImage 
                                 in:(NSButtonCell *)buttonCell;
   - (void)viewSizeChanged:(id)sender;
   - (void)alphaControlAddedOrRemoved:(id)sender;
   - (void)attachColorList:(NSColorList *)colorList;
   - (void)detachColorList:(NSColorList *)colorList;
   - (void)setMode:(int)mode;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required