• 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
How to disable/gray an NSTextfield (used as static text)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to disable/gray an NSTextfield (used as static text)


  • Subject: How to disable/gray an NSTextfield (used as static text)
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 22 Oct 2004 20:34:06 -0400

Hi,

I am using an NSTextField as a text label (ie not editable nor
selectable). I'd like to 'disable' this textfield so that it appears
gray instead of black.

Obviously, setEnabled:NO does not work. :( I thought to maybe change the
text colour to disabledControlTextColor, but maybe there is a better solition?

I checked the archives, and this has been asked before, but not answered. :)

(Basically, I'm trying to achieve exactly what can be seen in System
Preferences > Energy Saver > Schedule, notice how the word 'at' is grayed
if the 'start up the computer' checkbox is off.)

Thanks!

--
Erroneous google translation: "She does not love pig-turkey, the toys
which make noise and especially the sound of the harmonica..."


_______________________________________________
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

  • Follow-Ups:
    • Re: How to disable/gray an NSTextfield (used as static text)
      • From: Daniel Todd Currie <email@hidden>
  • Prev by Date: Re: Bug in NSArrayController? (immutable instead of mutable dictionaries)
  • Next by Date: Re: NSTextField allowing only numbers
  • Previous by thread: IBPalette weirdness
  • Next by thread: Re: How to disable/gray an NSTextfield (used as static text)
  • Index(es):
    • Date
    • Thread