Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rethish

macrumors member
Original poster
Oct 16, 2008
41
0
Hi all,


In my application I use two instance of nscolorwell, one for foreground color (which is a default one) and second one for setting the background color.
For setting the background color I used the code:

[textview setBackgroundColor:[colorwel color]];

This works upto some extend,the background color is changed ,if the nscolorwell is clicked without selecting a range from the nstextview.

The problem is ,when we select a range of text from the nstextview and click the nscolorwell (background instance) the text color also is changed .(ie the text color and background color become same )

I want to set background color alone upto some range.


Please help

Happy New Year


Thanks in advance
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.