How to capture user input in real time in NSTextField?
问题 I can capture string when user click the button. and I also use the following method - (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText *)fieldEditor which declared in NSControlTextEditingDelegate Protocol. And when user begin editing, the button will be available. My Question is: How to make the button disable when user delete all text (make the textField empty without clicking button)? The above method seems can not do it... 回答1: Look at using the