Re: Highlighting programmatically
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