Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView disable



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.