FROM : Shawn Erickson
DATE : Thu Apr 07 18:41:25 2005
On Apr 7, 2005, at 9:26 AM, Luc Vandal wrote:
> I don't even understand why it's so difficult to be notified that the
> focus has switched to another control... To me it's a pretty basic
> thing that should've been included in the API as an event (onFocus) or
> a notification (NSFocusChanged). :)
>
> If anyone has a code snippet to share it would really be appreciated!
I suggest using the terminology of first responder [1] and not focus.
The former is likely more aligned to what you are asking for and the
later is a view drawing concept.
I think it may help to step back and better outline or restate what you
are trying to achieve. If you do that we may be able to help you with a
solution.
So what would you use this information for? etc.
-Shawn
[1]
<http://developer.apple.com/documentation/Cocoa/Conceptual/
BasicEventHandling/index.html>
DATE : Thu Apr 07 18:41:25 2005
On Apr 7, 2005, at 9:26 AM, Luc Vandal wrote:
> I don't even understand why it's so difficult to be notified that the
> focus has switched to another control... To me it's a pretty basic
> thing that should've been included in the API as an event (onFocus) or
> a notification (NSFocusChanged). :)
>
> If anyone has a code snippet to share it would really be appreciated!
I suggest using the terminology of first responder [1] and not focus.
The former is likely more aligned to what you are asking for and the
later is a view drawing concept.
I think it may help to step back and better outline or restate what you
are trying to achieve. If you do that we may be able to help you with a
solution.
So what would you use this information for? etc.
-Shawn
[1]
<http://developer.apple.com/documentation/Cocoa/Conceptual/
BasicEventHandling/index.html>






Cocoa mail archive

