• 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
Any way to detect firstResponder changes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Any way to detect firstResponder changes?


  • Subject: Any way to detect firstResponder changes?
  • From: Ken Tozier <email@hidden>
  • Date: Tue, 11 Nov 2008 11:04:40 -0500

Hi

I have a custom NSView subclass that contains, among other things, an NSTableView and need to know when focus changes happen so I can highlight the the view correctly. I tried setting up a KVO observer on NSWindw's "firstResponder", but it appears that windows don't report this change.

I'd like to do this without resorting to subclassing dozens of class to broadcast when they receive a "becomeFirstResponder" or "resignFirstResponder" message. What is the best way to go about detecting responder changes in subviews of a custom view?

Thanks for any help
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • RE : Any way to detect firstResponder changes?
      • From: Etienne Guérard <email@hidden>
    • Re: Any way to detect firstResponder changes?
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: ActiveRecord on Cocoa
  • Next by Date: Re: ActiveRecord on Cocoa
  • Previous by thread: Re: Play/Pause, rew/ff keys ...
  • Next by thread: Re: Any way to detect firstResponder changes?
  • Index(es):
    • Date
    • Thread