Color swatch in NSMenuItem
Color swatch in NSMenuItem
- Subject: Color swatch in NSMenuItem
- From: "Stephan R. Cleaves" <email@hidden>
- Date: Tue, 29 Jan 2002 07:21:05 -0500
Hi,
I'd like to have some NSPopUpButtons that contain NSMenuItems with
color swatches, ala Mail.app. Right now I'm guessing they are using a
custom subclass something, but it appears that NSMenuItemCell is
deprecated so I'm not sure where the drawing would be done. I tried
adding an NSImage created of a certain size and with background set, but
this doesn't ever show anything (other than shifting the text over),
which according to the docs it won't if the image gets cached.
Any ideas would be appreciated,
stephan