• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dimmed NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: importing data using core data
  • Next by Date: Re: importing data using core data
  • Previous by thread: Re: importing data using core data
  • Next by thread: Core Data: Unable to store a NSData object into an entity's binary property.
  • Index(es):
    • Date
    • Thread