NSButton setKeyEquivalent: leaving funny color?
NSButton setKeyEquivalent: leaving funny color?
- Subject: NSButton setKeyEquivalent: leaving funny color?
- From: Dan Wood <email@hidden>
- Date: Mon, 18 Mar 2002 15:24:10 -0800
I'm wondering if anybody has run across this issue, and if there
is any resolution.
I have a "default" button, which throbs blue, that I switch to
be a non-default button (using setKeyEquivalent:) after it has
been pressed, so that the throbbing will stop. (After the user
changes the text where it might make sense to use the button, I
switch the key equivalent back to "\r" to make it default again.
This technique works fine, except that depending on the shade of
blue that the throbbing button was when I switched the key
equivalent was, the button stays an inappropriately dark shade
of gray. It's as if -[NSButton setKeyEquivalent:] just removes
the hue. What I want to happen is for the button to return to
its normal shade. I've tried doing all kinds of things with the
button, setting its state to NSOffState, disabling then
enabling, and so forth, but to no avail.
Has anybody else encountered this? I am assuming I can file
this as a bug, but a workaround would be useful!
Dan
--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X:
http://www.karelia.com/watson/
_______________________________________________
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.