Re: Knowing if a view is first responder
Re: Knowing if a view is first responder
- Subject: Re: Knowing if a view is first responder
- From: "Geert B. Clemmensen" <email@hidden>
- Date: Tue, 5 Apr 2005 16:34:04 +0200
On 5. apr 2005, at 16.27, Michael Becker wrote:
Hello,
is there any way to determine if a view is first responder? Right now, I have subclassed NSView and overrode -becomeFirstResponder and -resignFirstResponder to set an instance variable which I can query with my own added method -isFirstResponder. Am I reinventing the wheel here?
Maybe this will work for you:
if (myView == [[myView window] firstResponder]) ...
Regards,
Geert B. Clemmensen
www.frontbase.com
_______________________________________________
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