I would like to use the code from the answer to this question: How to observe the value of an NSTextField on an NSTextField in order to observe changes on the string stored
In Swift it's
public override func controlTextDidChange(_ obj: Notification) { }