DekGenius.com
[ Team LiB ] Previous Section Next Section

NSColorPickingCustom Mac OS X 10.0

This protocol declares an interface for classes to conform to provide custom color pickers for the color-picker panel. This protocol is used closely with the NSColorPickingDefault protocol, which declares the basic interface for color pickers. The most straightforward way to create a custom color picker for your application is to subclass NSColorPicker, and implement the methods of this protocol in your subclass.

@protocol NSColorPickingCustom
 // Instance Methods
   - (BOOL)supportsMode:(int)mode;
   - (int)currentMode;
   - (NSView *)provideNewView:(BOOL)initialRequest;
   - (void)setColor:(NSColor *)newColor;
@end

    [ Team LiB ] Previous Section Next Section