• 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
Changing the Text Color of an NSMenuItem in an NSPopUpButton?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing the Text Color of an NSMenuItem in an NSPopUpButton?


  • Subject: Changing the Text Color of an NSMenuItem in an NSPopUpButton?
  • From: Richard Kendall Wolf <email@hidden>
  • Date: Wed, 15 May 2002 18:48:24 -0500

Take pity on a newbie! I promise I checked the archives first. Feel free to flame if I overlooked the answer in the archives.

I think I have a legitimate reason to want to set the color of text in an NSMenuItem within an NSPopUpButton. Just so the user interface guys don't freak, I don't want to allow the user to be able to change the color ... and I want to restrict the text color to just two colors: red and black.

All the methods that set/return text in a popup button do so with NSStrings. What I think I'm after is the NSText, for which I can set the color easily (just like I could, say, for an NSTextField).

Am I nuts? Is it even possible short of subclassing like crazy?
_______________________________________________
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.

  • Follow-Ups:
    • Re: Changing the Text Color of an NSMenuItem in an NSPopUpButton?
      • From: email@hidden
  • Prev by Date: Re: Key Equivalents
  • Next by Date: Customize toolbar item
  • Previous by thread: Problem with drawers porting...
  • Next by thread: Re: Changing the Text Color of an NSMenuItem in an NSPopUpButton?
  • Index(es):
    • Date
    • Thread