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


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