Re: How to make text view treat colon as word boundary
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