Finding words in NSTextViews
Finding words in NSTextViews
- Subject: Finding words in NSTextViews
- From: Chris Gehlker <email@hidden>
- Date: Fri, 01 Mar 2002 07:56:35 -0700
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.
--
Every society honors its live conformists and its dead troublemakers.
-Mignon McLaughlin, author
_______________________________________________
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.