Class: SC.Responder
Extends
SC.Object.
Provides common methods for sending events down a responder chain. Responder chains are used most often to deliver events to user interface elements in your application, but you can also use them to deliver generic events to any part of your application, including controllers.
Defined in: responder.js
- Since:
- SproutCore 1.0
Field Summary
- Fields borrowed from SC.Object:
- concatenatedProperties, isDestroyed, isObject, nextProperty, object, property, target, toInvalidate
- Fields borrowed from SC.Observable:
- isObservable
Instance Methods
- becomeFirstResponder()
- destroy()
- didBecomeFirstResponder(responder)
- resignFirstResponder(the)
- willLoseFirstResponder(responder)
Field Detail
acceptsFirstResponderInstance Method Detail
Call this method on your view or responder to make it become first responder.
- Returns:
- SC.Responder
- receiver
Called just after the responder or any of its subresponder's becomes a first responder.
Override this method to provide any standard setup when the first responder changes.
- Parameters:
- responder SC.Responder
- the responder that changed
- Returns:
- void
Call this method on your view or responder to resign your first responder status. Normally this is not necessary since you will lose first responder status automatically when another view becomes first responder.
- Parameters:
- the Event
- original event that caused this method to be called
- Returns:
- SC.Responder
- receiver
Called just before the responder or any of its subresponder's are about to lose their first responder status. The passed responder is the responder that is about to lose its status.
Override this method to provide any standard teardown when the first responder changes.
- Parameters:
- responder SC.Responder
- the responder that is about to change
- Returns:
- void