I have NSTextViews where I need to track the current end point of the text to place interface elements.
I bind a model string to NSBindingName.value on the text view.
When the text is edited I update the location of my interface elements in
func textDidChange(_ notification: Notification)
...as a delegate to the NSTextView.
However, if my model is the source of a string update, this delegate method is never called, even though the text is correctly updated in the NSTextView.
So, am I doing something wrong and the bound change should call textDidChange?
If not, and this is a bug or by design, should I just be observing and manually updating values and calling by own delegate method? It seems a shame to lose the elegance of the binding.
Please note that this has been asked before, but marked as correctly answered when it is not: NSTextView textDidChange/didChangeText not called for bindings