• 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: Finding words in NSTextViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding words in NSTextViews


  • Subject: Re: Finding words in NSTextViews
  • From: Chris Gehlker <email@hidden>
  • Date: Fri, 01 Mar 2002 11:47:58 -0700

On 3/1/02 7:56 AM, "Chris Gehlker" <email@hidden> wrote:

> I'm working on my IDE for Ruby and I would like to emphasize keywords by
> changing their color. To do that I need to parse the container for words.
> componentsSeparatedByString: looks promising but it doesn't seem to have a
> notion of whitespace. nextWordFromIndex:forward: looks exactly right except
> the docs say don't use it for parsing of text.
>
> Any advice or references to sample code would be appreciated.

Never mind. I found a better algorithm.
--

Those who write clearly have readers, those who write obscurely have
commentators. -Albert Camus, writer and philosopher (1913-1960)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Finding words in NSTextViews (From: Chris Gehlker <email@hidden>)

  • Prev by Date: Re: C++?
  • Next by Date: Re: C++?
  • Previous by thread: Finding words in NSTextViews
  • Next by thread: Re: Sheet!
  • Index(es):
    • Date
    • Thread