DekGenius.com
[ Team LiB ] Previous Section Next Section

NSColorPickingDefault Mac OS X 10.0

This protocol declares an interface for classes to conform to in order to provide custom color pickers for the color-picker panel. This protocol is used closely with the NSColorPickingCustom protocol. The Application Kit implements the methods of this protocol in the NSColorPicker class. The most straightforward way to create a custom color picker for your application is to subclass NSColorPicker and implement the methods of NSColorPickingCustom in your subclass.

@protocol NSColorPickingDefault
 // Instance Methods
   - (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;
@end

    [ Team LiB ] Previous Section Next Section