The root object for a responder chain. A responder context can dispatch actions directly to a first responder; walking up the responder chain until it finds a responder that can handle the action.
If no responder can be found to handle the action, it will attempt to send
the action to the
You can have as many ResponderContext's as you want within your application.
SC.Application automatically implements this mixin.
Note that to implement this, you should mix
SC.ResponderContext into an
Defined in: responder_context.js
- SproutCore 1.0
- makeFirstResponder(responder, evt)
- sendAction(action, sender, context)
Field DetailSC.ResponderContext.defaultResponder SC.Responder
Class Method Detail
Makes the passed responder into the new
firstResponder for this
responder context. This will cause the current first responder to lose
its responder status and possibly
keyResponder status as well.
When you change the first responder, this will send callbacks to responders up the chain until you reach a shared responder, at which point it will stop notifying.
Finds the next responder for the passed responder based on the responder's
nextResponder property. If the property is a string, then lookup the path
in the receiver.
Send the passed action down the responder chain, starting with the
current first responder. This will look for the first responder that
actually implements the action method and returns
YES or no value when