Re: nspopupbuttoncell attribs
Re: nspopupbuttoncell attribs
- Subject: Re: nspopupbuttoncell attribs
- From: Nick Toumpelis <email@hidden>
- Date: Mon, 11 Feb 2008 12:23:37 +0200
On 11 Φεβ 2008, at 6:20 ΠΜ, William Zumwalt wrote:
In my dataCellForRow: method, I'm trying to set the text color but
I'm not
finding a way to do this with an NSPopUpButtonCell like there is for
NSTextFieldCell which uses setTextColor:. How is this done?
I don't think there is a way to do that easily. NSPopUpButtonCell
displays a menu and text in menus should be black. I'm not sure
whether this is specified in the Human Interface Guidelines but even
if it isn't, it is a de facto standard. There may be other indirect
ways to change the color of the menu text, however.
The setState: isn't making the checkbox go away which is my
understanding of
what it's for. What am I doing wrong there?
You could change the OnStateImage of each NSMenuItem, so that they
don't have an NSMenuCheckmark image. NSMenuItem has a setOnStateImage:
method. That's the best I could think for now.
Nick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden