• 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 to print attributed strings to output (using NSLog? or otherwise)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to print attributed strings to output (using NSLog? or otherwise)


  • Subject: Re: how to print attributed strings to output (using NSLog? or otherwise)
  • From: Andrew Farmer <email@hidden>
  • Date: Fri, 20 Jul 2007 15:08:02 -0700

On 20 Jul 07, at 13:25, Chase wrote:
That keeps the app from throwing an error and it does print the text, but it strips off the attributes. I'm trying to figure out how to print it **with** the attributes.

In other words, I want to see the text printed in red in the xcode output window. I know it's possible, because I've seen red output before.... I just can't remember what I called or did that caused red text to be printed there. Although, whatever it was, it may have been just using ncurses, which doesn't help me. I need to ensure that the attributes are getting set properly on these various attributed strings **before** building the UI that will eventually display them.

XCode will occasionally display red text in the output window, but it's reserved for certain text which is generated internally ("application terminated", primarily). There is no way to format console output from your application. I don't believe that XCode even interprets terminal escape codes.
_______________________________________________


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: 
 >Re: how to print attributed strings to output (using NSLog? or otherwise) (From: "Chase" <email@hidden>)

  • Prev by Date: Re: NSDecimalNumber and division precision
  • Next by Date: Multiple Views, one NSScrollView
  • Previous by thread: Re: how to print attributed strings to output (using NSLog? or otherwise)
  • Next by thread: Re: how to print attributed strings to output (using NSLog? or otherwise)
  • Index(es):
    • Date
    • Thread