• 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 do color text output?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I do color text output?


  • Subject: Re: How can I do color text output?
  • From: Greg Hulands <email@hidden>
  • Date: Sun, 15 Feb 2009 10:28:18 -0800

Use an NSMutableAttributedString and write it out as an RTF file.

You can display it in an NSTextView


On Feb 15, 2009, at 9:36 AM, Ellie Baker wrote:

I am new to Xcode and was wondering if someone could advise me about the best approach to writing a simple program that outputs text in color. It could be output to a file or to the console — I just need to be able to print the color output. For example, how can I write “hello world” with the characters in different colors? Can I do this using C++ and the console for output? Or must I use cocoa (if so, how?)? Or is there some simpler option? I only need to use a few basic colors (nothing fancy).
Thanks for any help!
Ellie


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How can I do color text output? (From: Ellie Baker <email@hidden>)

  • Prev by Date: Re: Newbie question
  • Next by Date: Re: Xcode-users Digest, Vol 6, Issue 92
  • Previous by thread: Re: How can I do color text output?
  • Next by thread: Re: How can I do color text output?
  • Index(es):
    • Date
    • Thread