• 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: NSView disable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView disable


  • Subject: Re: NSView disable
  • From: Andre Lipinski <email@hidden>
  • Date: Fri, 30 Nov 2001 01:34:03 -0500

On Thursday, November 29, 2001, at 08:02 PM, Dustin Mierau wrote:

I need to know when I should draw the content of my NSView in a disabled state. Is there a notification I should listen for? Is there a method of NSWindow or NSView that tells me if I should draw the content disabled?


There are many notification you might be interested in depending on what's in your view and how it responds to key:

NSWindowDidResignMainNotification This is the main one, everything should go dim when this is received.
NSWindowDidBecomeMainNotification This tells you when to un-dim.

NSWindowDidBecomeKeyNotification Tells you when to use the part-dim selection colour on custom selections
NSWindowDidResignKeyNotification Tells you when to stop using the part-dim selection colour on custom selections

NSControlTintDidChangeNotification if your view involves custom coloured controls that retain some of their colour when disabled

NSSystemColorsDidChangeNotification If it involves a custom selection and your dimmed views retain the selection colour.


References: 
 >NSView disable (From: Dustin Mierau <email@hidden>)

  • Prev by Date: Regarding fonts
  • Next by Date: Re: NSActionCell and NSTextFieldCell
  • Previous by thread: NSView disable
  • Next by thread: Displaying Unicode
  • Index(es):
    • Date
    • Thread