Problem when setting the background color using NSColorWell
Problem when setting the background color using NSColorWell
- Subject: Problem when setting the background color using NSColorWell
- From: rethish <email@hidden>
- Date: Mon, 27 Apr 2009 15:32:38 +0530
- Thread-topic: Problem when setting the background color using NSColorWell
Hi all,
In my application I use a NSColorWell instance. I use this to set the
background color of the textview.
I use an action method to do this task,
-(IBAction)setBGcolor:(id)sender;
{
[txtview setBackgroundColor:[colwel color]];
}
This works only when I activate and pick color from the colorwell.
The problem is that , when I click the colorwell and type something in the
textview , i get colored text (ie., the default selection in the colorwell)
.
I want to use the colorwell only for setting the background color.
Are the colorwell used to set the foreground color by default?
Thankyou.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden