• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Finding a word from a character position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Finding a word from a character position
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: ParseKit BNF grammar
  • Next by Date: Re: image not found
  • Previous by thread: ParseKit BNF grammar
  • Next by thread: Re: Finding a word from a character position
  • Index(es):
    • Date
    • Thread