• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Color swatch in NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSTableView Data Source problems
  • Next by Date: Re: Database Access
  • Previous by thread: Re: Bug? ".keyboard" NSString returned from [NSFontManager availableFonts]?
  • Next by thread: Problem with OpenGL MacTech code
  • Index(es):
    • Date
    • Thread