FROM : Luc Vandal
DATE : Thu Apr 07 18:46:34 2005
Ok! :) Basically, I need to know when a control (text field, button,
etc.) has gained focus so that I can perform some stuff when that
happens. So if the user clicks on one of the control or is tabbing
through them, I need to know which control has the focus.
Is there a way to achieve this?
Luc
On 7-Apr-05, at 12:36 PM, j o a r wrote:
>
> On 2005-04-07, at 18.26, 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). :)
>
> The interesting question, that I'm surprised has not been asked yet,
> is of course - what is it that you're trying to do? If something is
> difficult in Cocoa, it's probably because you're not doing it the
> Cocoa way. Could you give a bit more information on the problem you're
> trying to solve?
>
> j o a r
>
DATE : Thu Apr 07 18:46:34 2005
Ok! :) Basically, I need to know when a control (text field, button,
etc.) has gained focus so that I can perform some stuff when that
happens. So if the user clicks on one of the control or is tabbing
through them, I need to know which control has the focus.
Is there a way to achieve this?
Luc
On 7-Apr-05, at 12:36 PM, j o a r wrote:
>
> On 2005-04-07, at 18.26, 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). :)
>
> The interesting question, that I'm surprised has not been asked yet,
> is of course - what is it that you're trying to do? If something is
> difficult in Cocoa, it's probably because you're not doing it the
> Cocoa way. Could you give a bit more information on the problem you're
> trying to solve?
>
> j o a r
>






Cocoa mail archive

