开发者

right click nstextview

I am implementing a customized editor. I am using NSTextView. In doing so, I am using a spell checker to check the word and give back suggestions. I want to be able to add the word to the context menu. This is similar to Text Edit.

My question is when the user right clicks on a word, TextEdit seems to highlight the entire word. How can I achieve a similar functionality. I want to pass the selected word to the spellchecker and get the result back. I don't want the user to select the word. But instead just right click in the middle of a word and highlight the entire word f开发者_JAVA百科or him.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜