Dimmed NSTextField?
Dimmed NSTextField?
- Subject: Dimmed NSTextField?
- From: Jim Correia <email@hidden>
- Date: Fri, 6 Jan 2006 16:29:10 -0500
I have a checkbox which is a master which would should disable
subcontrols. All the subcontrols current auto disable through
bindings, but my text fields still retain the enabled appearance.
It appears that [textField setEnabled: NO] prevents the text field
from tracking events, but doesn't change it's appearance.
Per Sean McBride's previous findings
http://www.cocoabuilder.com/archive/message/cocoa/2004/11/22/122147
http://www.cocoabuilder.com/archive/message/cocoa/2004/11/22/122177
subclassing NSTextField to tie the color to the enabled state only
works correctly when you use the logically wrong control color.
As far as I can tell, there are (at least) three possible solutions
here:
- subclass, using Sean's findings (no matter how ugly it feels :-))
- react to the change in the controller layer and manually change the
text color
- bind the text color to the master control's enabled value through a
value transformer
Have I missed a more straight forward, or elegant, way to do this?
Thanks,
Jim
_______________________________________________
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