Re: Highlight selected text in NSTextView
Re: Highlight selected text in NSTextView
- Subject: Re: Highlight selected text in NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Mon, 27 Jun 2005 10:46:48 -0700
On Jun 26, 2005, at 8:01 AM, Michele wrote:
So, I was wondering if there's a quick way to highlight selected
text. I tried setting a background color for the selection, but it
ends up coloring the whole background.
It's not clear to me exactly what you mean, but you can set the
selected range with NSTextView's -setSelectedRange: method, and you
can change the indication used for selected text with -
setSelectedTextAttributes:.
Douglas Davidson
_______________________________________________
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