changing the text color of disabled textfields
changing the text color of disabled textfields
- Subject: changing the text color of disabled textfields
- From: Chase <email@hidden>
- Date: Fri, 22 Jul 2005 12:05:53 -0500
From the NSControl doc:
- (void)setEnabled:(BOOL)flag
Sets whether the receiver’s cell—or if there is no associated cell,
the NSControl itself—is active (that is, whether it tracks the mouse
and sends its action to its target). If flag is NO, any editing is
aborted. Redraws the entire control if autodisplay is enabled.
Subclasses may want to override this method to redraw only a portion
of the control when the enabled state changes, as do NSButton and
NSSlider.
How would a subclass override redrawing behavior while still setting
this variable?
i need to have textfields that are not hard-coded to the color gray
(the text, that is) when they are disabled.
how would i override this behavior?
thanks.
- chase
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden