Re: event/notification for focus?
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