NSTextView can get into a state where right-clicking on a mispelled word will not select the entire word. Intead it will just select the single character that the mouse is over. To see this problem open TextEdit and:
1. Enable Check Spelling While Typing
2. Enable Correct Spelling Automatically
3. Slowly type a partial word waiting for the autocorrect to popup. In my case I typed "wor" and waited and was presented with the option to autocomplete it to "for".
4. Use the Escape key to dismiss the autocorrect suggestion.
Now NSTextView should be in the odd state. Try right clicking on the "wor" text ... norally this should fully select "wor" and show a context menu. But in this case it instead just selects the single character that you clicked on. Any suggestions on how to best work around this?
Right now I'm overriding `menuForEvent` and manully selecting the word and once it's selected I'm also calling `checkTextInSelection`. That fixes it, but I'm wondering if there's some better place to fix this problem so that the bad state doesn't get into the text view in the first place?
Jesse