 import UIKit
 import AwfulBinding
 
-public class BindableTextField:UITextField, PTextBindable, PHiddenBindable{
+public class BindableTextField:UITextField, UITextFieldDelegate, PTextBindable, PHiddenBindable{
+    public var onEditingStarting:(() -> Void)?
+    public var onEditingEnding:(() -> Void)?
+    
     private var _textBinding:BindableValue<String>?
     
     //DEPRECATED: remove for 1.0

    private func hiddenBinding_valueChanged(newValue:Bool){
        self.hidden = newValue
    }
}
    }
    
    internal func commonInit(){
        self.delegate = self //TODO: override this setter and alert when this is set to something other than self (do this for most of these components as well)
        
        self.addTarget(self, action: Selector("textChanged"), forControlEvents: UIControlEvents.EditingChanged)
    }
    
