I want to catch the input text in NSTextField before it changes and manipulate it.
like textField:shouldReplaceCharactersInRange
for UITextField
, and
textView:shouldChangeTextInRange
for NSTextView
.
Update:
I don't mind if textDidChange(notification: NSNotification)
will be triggered or not