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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to