Re: Can this be done, change hilite color?
Re: Can this be done, change hilite color?
- Subject: Re: Can this be done, change hilite color?
- From: Shane Stanley <email@hidden>
- Date: Mon, 04 Apr 2016 21:37:19 +1000
On 4 Apr 2016, at 8:11 PM, Brian Christmas <email@hidden> wrote:
>
> Is there any way of altering the selection text colour without making the change permanent?
NSLayoutManager has a method -addTemporaryAttributes:forCharacterRange: which will do what you want. Something like:
theTextView's layoutManager()'s addTemporaryAttributes:...
You can remove them with removeTemporaryAttribute:forCharacterRange:.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden