How to make text view treat colon as word boundary
How to make text view treat colon as word boundary
- Subject: How to make text view treat colon as word boundary
- From: Shane Stanley <email@hidden>
- Date: Fri, 26 Jul 2013 15:17:42 +1000
I have a text view that's used for editing code, and I want the user to be able to double-click within "foo:fie" and have only foo or fie selected. I overrode mouseDown: and mouseDragged: and thought I was home free -- but I now realise that's not going to work with completion.
Changing the system setting to Computer locale isn't an option. I see Xcode actually does it differently depending on whether the double-click is inside a string literal or not. I don't see anything obvious -- any ideas?
--
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