Re: overwrite NSLog
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