Changing the Text Color of an NSMenuItem in an NSPopUpButton?
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.