DekGenius.com
[ Team LiB ] Previous Section Next Section

NSColorWell Mac OS X 10.0

This NSControl subclass provides a user interface element that the user can use to open the color picker and select colors the application can use. This NSControl subclass has no associated NSCell subclass, so NSColorWell controls may not appear in NSMatrix objects, which require NSCell objects as its children. To obtain an NSColor object from the color well, use the method color; to set the color displayed in the well, invoke setColor:.

figs/cocn_1520.gif

@interface NSColorWell : NSControl
 // Accessor Methods
   - (void)setBordered:(BOOL)flag;
   - (void)setColor:(NSColor *)color;
   - (NSColor *)color;
 // Instance Methods
   - (void)activate:(BOOL)exclusive;
   - (void)deactivate;
   - (void)drawWellInside:(NSRect)insideRect;
   - (BOOL)isActive;
   - (BOOL)isBordered;
   - (void)takeColorFrom:(id)sender;

    [ Team LiB ] Previous Section Next Section