Re: how can i color NSTextView by using RGB component value?
Re: how can i color NSTextView by using RGB component value?
- Subject: Re: how can i color NSTextView by using RGB component value?
- From: Graham Cox <email@hidden>
- Date: Wed, 3 Jun 2009 13:17:07 +1000
On 03/06/2009, at 1:11 PM, archana udupa wrote:
I wanted t color ma textview by using rgb component value.how can i do
that?can i use below method?
wot value should i set for below method?
+ (NSColor *)colorWithCalibratedRed:(float)red green:(float)green
blue:(float)blue alpha:(float)alpha
Oh come on, you're not even trying. Have you read the documentation?
Nobody can answer your question, since only you know what colour you
want! Once you have it, you can apply it to the text view using -
setTextColor:
--Graham
_______________________________________________
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