NSTextView with smart features