FROM : Ricky Sharp
DATE : Thu Apr 07 17:58:26 2005
On Thursday, April 07, 2005, at 10:52AM, Luc Vandal <<email_removed>> wrote:
>and how do you check which control has focus? I know that there's
>focusView that returns the control that has focus but it doesn't seem
>available through [self window];
As I mentioned in a previous message, be careful when finding APIs to work with 'focus'. focusView is used to determine which view has "window and coordinate system" focus (see lockFocus).
In order to see if a particular view is the first responder, check out the recent replies to this thread. I believe someone mentioned that you should not only check the owning window's firstResponder, but also if that window is currently key.
--
Rick Sharp
Instant Interactive(tm)
DATE : Thu Apr 07 17:58:26 2005
On Thursday, April 07, 2005, at 10:52AM, Luc Vandal <<email_removed>> wrote:
>and how do you check which control has focus? I know that there's
>focusView that returns the control that has focus but it doesn't seem
>available through [self window];
As I mentioned in a previous message, be careful when finding APIs to work with 'focus'. focusView is used to determine which view has "window and coordinate system" focus (see lockFocus).
In order to see if a particular view is the first responder, check out the recent replies to this thread. I believe someone mentioned that you should not only check the owning window's firstResponder, but also if that window is currently key.
--
Rick Sharp
Instant Interactive(tm)






Cocoa mail archive

