• 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: event/notification for focus?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: event/notification for focus?


  • Subject: Re: event/notification for focus?
  • From: Mike Ferris <email@hidden>
  • Date: Thu, 7 Apr 2005 07:41:12 -0700

The closest thing out of the box is to listen for NSWindowDidUpdate and look for changes to keyWindow and firstResponder of keyWindow yourself...

As others mentioned, subclassing either views or windows could also be done to add this sort of notification. But I usually find that just watching for NSWindowDidUpdate and checking if the focus has changed is easier.

Mike Ferris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: event/notification for focus?
      • From: Luc Vandal <email@hidden>
References: 
 >event/notification for focus? (From: Luc Vandal <email@hidden>)

  • Prev by Date: NSTypesetter and NSLineSweepDirection
  • Next by Date: Subclassing a "shared" class object.
  • Previous by thread: Re: event/notification for focus?
  • Next by thread: Re: event/notification for focus?
  • Index(es):
    • Date
    • Thread