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 08:58:01 +1000
On 5 Apr 2016, at 8:15 AM, Brian Christmas <email@hidden> wrote:
Unfortunately, as I have a limit imposed on the maximum number of displayed emails, and remove the oldest from the list, the Range will alter as new email arrives, making the removal of the amended attributes impractical.
You can just use the full range for removal; you don't have to be specific.
I tried colouring the paragraph, but get an error that the new Script Object you so kindly wrote for me errors, when I try and color the text.
Setting color *** -[BrianTextView addAttribute:value:range:]: unrecognized selector sent to object <BrianTextView @0x7fadb3743210: OSAID(12) ComponentInstance(0xdf0000)>
I’ll now use your code you sent on addTemporaryAttributes, and not bother about removing them, but for my own sake, do you know why I can’t use the set a color method?
You have to address the view's textStorage(), not the view itself.
|
_______________________________________________
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