开发者

right click nstextview

开发者 https://www.devze.com 2023-03-10 01:16 出处:网络
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.

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

精彩评论

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