• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how can i color NSTextView by using RGB component value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can i color NSTextView by using RGB component value?


  • Subject: Re: how can i color NSTextView by using RGB component value?
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 2 Jun 2009 23:17:42 -0400

On Jun 2, 2009, at 11: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



You'll need to understand the color system. Read "Color Programming Topics for Cocoa"


http://developer.apple.com/documentation/Cocoa/Conceptual/DrawColor/DrawColor.html

The text view part doesn't really matter much as far as your question is concerned.

--
I.S.




_______________________________________________

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


References: 
 >how can i color NSTextView by using RGB component value? (From: archana udupa <email@hidden>)

  • Prev by Date: Re: how can i color NSTextView by using RGB component value?
  • Next by Date: NSDictionary dictionaryWithContentsOfURL problem
  • Previous by thread: Re: how can i color NSTextView by using RGB component value?
  • Next by thread: window does not seem to respond to orderOut:
  • Index(es):
    • Date
    • Thread