I have the following delegate method which is listening for when text changes in an editable field:
-(void)controlTextDidEndEditing:(NSNotification *)aNotification{
Say, I have two NSTextFields declared, how can I find out which is the NSTextField that generated the notification? I want to perform some code when one text field’s text did finish editing and other code when the other text field’s code finishes editing.
In other words, how can I get the name of the text field that gave the notification?
Thank you!
[aNotification object] is the NSControl (or NSControl subclass) object which posted the notification.