Re: notification for first responder status
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