OSX NSTextView validation category