• 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: Highlighting programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlighting programmatically


  • Subject: Re: Highlighting programmatically
  • From: Jonathan Jackel <email@hidden>
  • Date: Sun, 21 Aug 2005 12:42:47 -0400

If you just want to highlight the text, and not actually select it,
you can change its NSBackgroundColorAttributeName.  The text storage
of a text view is a mutable subclass of NSAttributedString.

Jonathan


On 8/21/05, Sanri Parov <email@hidden> wrote:
> Hi everybody,
>
> Is there a way, using a NSTextView and an NSScanner, to higlight
> programmatically a certain portion of text?
> What I mean is: the application highlights (like when is selected) a
> portion of text from a comma to the next one.
> Then, after a user decision, it goes to the next phrase and so on.
> Is it possible?
>
> Many thanks.
>
> --
> Sanri Parov
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Highlighting programmatically (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: NSComboBox - case insensitive auto-complete?
  • Next by Date: Re: Strange Managed Context Error
  • Previous by thread: Re: Highlighting programmatically
  • Next by thread: NSComboBox - case insensitive auto-complete?
  • Index(es):
    • Date
    • Thread