Re: Finding a word from a character position

2009-12-03 Thread Gideon King
Perfect, thanks Douglas. > On Dec 3, 2009, at 1:57 AM, Gideon King wrote: > >> I'm trying to emulate the double-click behavior of an NSTextView where it >> selects the word under your mouse. >> >> I am able to set the insertion point on a single click using the >> characterIndexForPoint: metho

Re: Finding a word from a character position

2009-12-03 Thread Douglas Davidson
On Dec 3, 2009, at 1:57 AM, Gideon King wrote: I'm trying to emulate the double-click behavior of an NSTextView where it selects the word under your mouse. I am able to set the insertion point on a single click using the characterIndexForPoint: method. What's the best way to go from ther

Finding a word from a character position

2009-12-03 Thread Gideon King
Hi I'm trying to emulate the double-click behavior of an NSTextView where it selects the word under your mouse. I am able to set the insertion point on a single click using the characterIndexForPoint: method. What's the best way to go from there to selecting the word (or space) where they h