• 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
changing the text color of disabled textfields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Strange issue when converting from hex to float
  • Next by Date: Re: Strange issue when converting from hex to float
  • Previous by thread: Facsimile & Cocoa
  • Next by thread: Upgrade issues
  • Index(es):
    • Date
    • Thread