• 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: Andy Matuschak <email@hidden>
  • Date: Sun, 21 Aug 2005 10:01:35 -0500

One can programmatically select some text in an NSTextView by calling setSelectedRange: with an NSRange.

- Andy Matuschak


On Aug 21, 2005, at 9:10 AM, Sanri Parov 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:
40andymatuschak.org


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: NSObject Category
  • Next by Date: NSComboBox - case insensitive auto-complete?
  • Previous by thread: Highlighting programmatically
  • Next by thread: Re: Highlighting programmatically
  • Index(es):
    • Date
    • Thread