Syntax Coloring and NSTextStorage
Syntax Coloring and NSTextStorage
- Subject: Syntax Coloring and NSTextStorage
- From: Goldfish <email@hidden>
- Date: Sat, 11 Jan 2003 18:53:19 -0500
Hello.
I'm trying to implement syntax coloring into a program of mine. I have
several different methods, one to color single quotes, another for
double quotes, another for comments, etc. All of them use
NSTextStorage's addAttribute:value:range function, with
NSForegroundColorAttributeName as the attribute. The problem is, when I
call more than one of these methods, only the last one called "sticks"
(i.e. if I call the double quote method after the single quote method,
only the double quote method's coloring appears).
Any ideas why this is happening? Can I force the attributes of the
TextStorage to stick between methods?
-Goldfish
Developer, FrakKalk, AlgeKalk, Perlidex, Xenophaquinox
http://homepage.mac.com/goldfish1
_______________________________________________
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.