I am doing something similar to:
@IBOutlet var textView: NSTextView!
override func viewDidLoad() {
super.viewDidLoad()
textView.delegate = self
}
func textDidChange(notification: NSNotification) {
}
I added "NSTextViewDelegate" at the very beginning.
I want to set the string value of the label if the text in "textView" is changed.
The problem is that my program will simply work without an error message (the breakpoint is in "fun textDidChange () ......"). It will work even if func textDidChange is empty.
Am I doing something wrong?
thank
source
share