• 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: Inactive application & custom view appearance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Inactive application & custom view appearance (From: David Aames <email@hidden>)

  • Prev by Date: Re: Cocoa UI
  • Next by Date: Re: Cocoa UI
  • Previous by thread: Inactive application & custom view appearance
  • Next by thread: Re: Inactive application & custom view appearance
  • Index(es):
    • Date
    • Thread