• 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: Shawn Erickson <email@hidden>
  • Date: Thu, 7 Apr 2005 10:29:35 -0700


On Apr 7, 2005, at 10:07 AM, Luc Vandal wrote:

I just want to be able to run a function when the focus (or should I use the term first responder? I'm confused) changes to another control.

What will that function do is what we are trying to understand? What do you need to do that depends on which control is currently at the head of the responder chain.


It goes to division of responsibility in your application and that you may be trying to mix across the lines, paradigm if you will, that Cocoa (AppKit) outlines.

Also, when the focus is changing to another control, does that mean that the control that has the focus is now the first responder or the first responder always remains the same?

The concept of focus [1] (aka a focused view) in Cocoa is separate from that of responders. The former deals with setting up the graphics environment as needed so a view can render itself when it is requested to do so. The later deals with responding to user input which of course could trigger the need for a view to redraw itself but that is an indirect relationship.


-Shawn

[1] <http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/ Tasks/DisplayingViews.html#//apple_ref/doc/uid/20000914/102181>

_______________________________________________
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: Shawn Erickson <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>)
 >Re: event/notification for focus? (From: Luc Vandal <email@hidden>)
 >Re: event/notification for focus? (From: j o a r <email@hidden>)
 >Re: event/notification for focus? (From: Luc Vandal <email@hidden>)

  • Prev by Date: Re: event/notification for focus?
  • Next by Date: help with program please?
  • Previous by thread: Re: event/notification for focus?
  • Next by thread: Re: event/notification for focus?
  • Index(es):
    • Date
    • Thread