• 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: "Tricks" of the "Trade"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: "Tricks" of the "Trade"
      • From: Rosyna <email@hidden>
  • Prev by Date: Re: "Tricks" of the "Trade"
  • Next by Date: Re: "Tricks" of the "Trade"
  • Previous by thread: Re: "Tricks" of the "Trade"
  • Next by thread: Re: "Tricks" of the "Trade"
  • Index(es):
    • Date
    • Thread