• 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
Re: Disable text field as label
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable text field as label


  • Subject: Re: Disable text field as label
  • From: Stephane Sudre <email@hidden>
  • Date: Thu, 21 Apr 2005 13:59:47 +0200


On 21 avr. 05, at 12:35, Andy Usher wrote:

Hi,

Does anyone know how to get NSTextField to 'gray out' when disabled, other than to explicitly set the color, when used as a text label (ie dragged on as 'Label Font Text' in IB).

I've tried setting it as disabled in both IB and programatically but every time it comes up with 100% black text color?

Obviously all's well when used for text input, but when I'm making labels there seems to be no way to gray out!

Any ideas?

You could subclass NSTextField to draw the text in gray when the control/cell is disabled.


Now, the HIG behavior for a label is to stay black AFAIK.

_______________________________________________
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


References: 
 >Disable text field as label (From: Andy Usher <email@hidden>)

  • Prev by Date: Re: Memory management with nibs
  • Next by Date: Re: Category or Protocol? (sidetrack)
  • Previous by thread: Disable text field as label
  • Next by thread: Re: Disable text field as label
  • Index(es):
    • Date
    • Thread