Re: NSTableView of NSColorWell
Re: NSTableView of NSColorWell
- Subject: Re: NSTableView of NSColorWell
- From: Scott Anguish <email@hidden>
- Date: Sun, 22 Sep 2002 23:02:22 -0400
On Sunday, September 22, 2002, at 10:56 PM, Greg Hulands wrote:
NSColorWell does not have an associated NSColorWellCell (i think is
quite a shame as it would have come in handy yesterday for me :-().
All I did was subclass NSCell and do a fill rect of the color and
then frame it with a black line. I have not as yet handle the click to
bring up the NSColorPanel so that it behaves like the NSColorWell.
(give me a couple of hours)
There is an NSColor method to draw the swatch -drawSwatchInRect:
this will include the appropriate adornments (i.e. CMYK adornment)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.