Re: How to determine if a view is active
Re: How to determine if a view is active
- Subject: Re: How to determine if a view is active
- From: Tobias Hermann <email@hidden>
- Date: Thu, 5 Jun 2003 00:25:42 +0200
hi
here is an additional hint to determine if you are the first responder
at the moment:
if ([[self window] firstResponder] == self) {
...
}
On Wednesday, June 4, 2003, at 10:28 PM, Daniel Jalkut wrote:
Hi Christoph - I believe what you're asking is how to know when you
have become "first responder" (in Carbon it's "focused").
Look at the acceptsFirstReponder method of NSResponder. If you
override that method to return YES, then you should receive a
"becomeFirstResponder" method call when your view is being "focused"
in the UI. You might not even need to do the outline drawing, because
your superclass might do it for you, I'm not sure.
Daniel
On Wednesday, June 4, 2003, at 08:58 AM, Christoph Gerdes wrote:
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.