Re: Syntax Coloring and NSTextStorage
Re: Syntax Coloring and NSTextStorage
- Subject: Re: Syntax Coloring and NSTextStorage
- From: Janek Priimann <email@hidden>
- Date: Sun, 12 Jan 2003 11:22:16 +0200
>
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
maybe the following link helps you.
http://jrepp.com/cocoabb/viewtopic.php?t=51
-----------------------------------------
Hot Mobiil - helinad, logod ja piltsunumid!
http://portal.hot.ee
_______________________________________________
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.