• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: event/notification for focus?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: event/notification for focus?


  • Subject: Re: event/notification for focus?
  • From: Luc Vandal <email@hidden>
  • Date: Thu, 07 Apr 2005 12:46:34 -0400

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


_______________________________________________ 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
  • Follow-Ups:
    • Re: event/notification for focus?
      • From: j o a r <email@hidden>
References: 
 >event/notification for focus? (From: Luc Vandal <email@hidden>)
 >Re: event/notification for focus? (From: Mike Ferris <email@hidden>)
 >Re: event/notification for focus? (From: Luc Vandal <email@hidden>)
 >Re: event/notification for focus? (From: Ricky Sharp <email@hidden>)
 >Re: event/notification for focus? (From: Luc Vandal <email@hidden>)
 >Re: event/notification for focus? (From: j o a r <email@hidden>)

  • Prev by Date: Re: event/notification for focus?
  • Next by Date: Re: Memory leak in simple code?
  • Previous by thread: Re: event/notification for focus?
  • Next by thread: Re: event/notification for focus?
  • Index(es):
    • Date
    • Thread