• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can this be done, change hilite color?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

-- 
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

  • Follow-Ups:
    • Re: Can this be done, change hilite color?
      • From: Brian Christmas <email@hidden>
References: 
 >Re: Can this be done, change hilite color? (From: Shane Stanley <email@hidden>)
 >Re: Can this be done, change hilite color? (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Can this be done, change hilite color?
  • Next by Date: Re: Can this be done, change hilite color?
  • Previous by thread: Re: Can this be done, change hilite color?
  • Next by thread: Re: Can this be done, change hilite color?
  • Index(es):
    • Date
    • Thread