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: Tue, 05 Apr 2016 11:23:53 +1000
On 5 Apr 2016, at 10:15 AM, Brian Christmas <email@hidden> wrote:
>
> unrecognized selector
When you get an unrecognized selector error, the first thing to do is to look the method up in the documentation to see what does recognize it.
You'll see that setAllowsEditingTextAttributes: is for text fields, not text views. So you'll have to look for something else (actually, I suspect you don't need this at all; it's for the user editing, not direct modification).
And you'll see that addTemporaryAttributes:forCharacterRange: is for NSLayoutManager, not NSTextStorage as I wrote. So that becomes a case of using mainMessagesView's layoutManager()'s addTemporaryAttributes:....
--
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