Re: Inactive application & custom view appearance
Re: Inactive application & custom view appearance
- Subject: Re: Inactive application & custom view appearance
- From: René van Amerongen <email@hidden>
- Date: Wed, 13 Dec 2006 16:09:26 +0100
Op 12-dec-2006, om 23:37 heeft David Aames het volgende geschreven:
Hello all,
I've a custom NSView and I'd like it to redraw itself when the
application becomes inactive (like the way scrollbars lose their
colour). Does my NSView have to observe [NSApplication isActive] in
order to know when it should redraw itself or is there another way?
(a property of NSView)
Many thanks,
David
Let your view register for NSApplicationWillResignActiveNotification
or NSApplicationDidResignActiveNotification notifications.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden