• 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: Highlight selected text in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Highlight selected text in NSTextView (From: Michele <email@hidden>)

  • Prev by Date: NSMatrix selectedObject(s) binding
  • Next by Date: disk image license dialog background image with 10.4
  • Previous by thread: Highlight selected text in NSTextView
  • Next by thread: How to find the manual
  • Index(es):
    • Date
    • Thread