Can someone explain me why textDidChange isn’t handling my delegate but controlTextDidChange works from NSTextField.
- (void)controlTextDidChange:(NSNotification *)aNotification{
NSBeep();
}
from
- (void)textDidChange:(NSNotification *)aNotification{
NSBeep();
}
controlTextDidChange:is the correct delegate method defined onNSTextField(inherited fromNSControl).textDidChange:is a method that, when called onNSTextField, makes it behave as if its text changed (including calling the above method). It is not a delegate method for you to implement.It’s a little inconsistent of Apple as they do have a
textDidChange:delegate method on UISearchBarDelegate.