Finding a word from a character position
Finding a word from a character position
- Subject: Finding a word from a character position
- From: Gideon King <email@hidden>
- Date: Thu, 3 Dec 2009 19:57:08 +1000
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 have clicked?
Thanks
Gideon
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden