• 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
Re: How to make text view treat colon as word boundary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make text view treat colon as word boundary


  • Subject: Re: How to make text view treat colon as word boundary
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 27 Jul 2013 09:17:53 +1000

On 27/07/2013, at 1:15 AM, Kyle Sluder <email@hidden> wrote:

> Subclass NSTextView and override
> -selectionRangeForProposedRange:granularity:. That should take care of
> both mouse- and keyboard-based selection.

Thanks. I wasn't sure that would work, given the docs say of it: "These mechanisms aren’t meant for changing language word definitions (such as what’s selected by a double click). That detail of selection is handled at a lower (and currently private) level of the text system." I took that to mean it wouldn't work, which now in the light of day to be reading too much into it.


--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

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


References: 
 >How to make text view treat colon as word boundary (From: Shane Stanley <email@hidden>)
 >Re: How to make text view treat colon as word boundary (From: Kyle Sluder <email@hidden>)

  • Prev by Date: NSUserDefaults deeply nested subtle mountain lion difference
  • Next by Date: Re: How to make text view treat colon as word boundary
  • Previous by thread: Re: How to make text view treat colon as word boundary
  • Next by thread: Re: How to make text view treat colon as word boundary
  • Index(es):
    • Date
    • Thread