Re: "Tricks" of the "Trade"
Re: "Tricks" of the "Trade"
- Subject: Re: "Tricks" of the "Trade"
- From: "Sven A. Schmidt" <email@hidden>
- Date: Thu, 7 Jun 2001 10:16:12 +0200
On Donnerstag, Juni 7, 2001, at 08:55 Uhr, Max J Cantor wrote:
YES, i do agree with you, NSLog() is a wonderful tool. But, I have a
question, if you want to NSLog() to print the value of an int, is
there a
better way than NSLog([[NSNumber numberWithInt:i] stringValue])?
int i ...
char *myCString ...
NSString *myString ...
NSLog( "%i %s %@\n", i, myCString, myString );
I have to agree, the first thing I usually revert to is
"printf"-debugging, because it just works everywhere. And haven't you
often enough suspected the debugger to go hand on hand with compiler and
OS to screw you? ;-)
Sven