• 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: overwrite NSLog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: overwrite NSLog


  • Subject: Re: overwrite NSLog
  • From: Gwynne <email@hidden>
  • Date: Sun, 6 Feb 2005 18:46:09 -0500

On Feb 6, 2005, at 6:39 PM, Daniel Child wrote:
Hi,

Is there a way to overwrite NSLog/description so that it does not print all the additional information it usually comes with? I don't mean overwriting it for a particular class, but generally, so that even in main in a FoundationTool I could use it and get behavior more like printf (but able to handle Unicode).

NSLog( @"%@\n", someObject );

is roughly the same as

printf( "%s\n", [[someObject description] UTF8String] );

except that the printf() will not print the datetime, process name, or pid.

-- Gwynne, key to the Code
Email: email@hidden
Website: http://musicimage.plasticchicken.com/
"This whole world is an asylum for the incurable."

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: overwrite NSLog
      • From: Shaun Wexler <email@hidden>
References: 
 >overwrite NSLog (From: Daniel Child <email@hidden>)

  • Prev by Date: overwrite NSLog
  • Next by Date: Re: overwrite NSLog
  • Previous by thread: overwrite NSLog
  • Next by thread: Re: overwrite NSLog
  • Index(es):
    • Date
    • Thread