• 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: notification for first responder status
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: notification for first responder status


  • Subject: Re: notification for first responder status
  • From: Jim Correia <email@hidden>
  • Date: Tue, 6 Dec 2005 21:23:49 -0500

On Dec 6, 2005, at 8:56 PM, Dustin Voss wrote:

Best way to do this is with a NSWindow sub-class that overrides - makeFirstResponder:.

I've written such a sub-class, ResponderNotificationWindow, at <http://homepage.mac.com/d.j.v./FileSharing13.html>.

The problem that poses is that you can only watch firstResponder in windows that are your subclass, or your subclass has to poseAsClass early on.

A more generic (but also more heavy handed solution) is to listen for NSWindowDidUpdateNotification and check to see if the firstResponder has changed.

Jim
_______________________________________________
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
References: 
 >notification for first responder status (From: Niko Matsakis <email@hidden>)
 >Re: notification for first responder status (From: Dustin Voss <email@hidden>)

  • Prev by Date: Re: notification for first responder status
  • Next by Date: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
  • Previous by thread: Re: notification for first responder status
  • Next by thread: Re: notification for first responder status
  • Index(es):
    • Date
    • Thread