Re: NSView disable
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.