Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

NSLog won't display results long enough to see them?

Hi, I'm a total complete newbie to Objective-C 2.0 programming. I'm starting to learn the language from Stephen Kochan's book "Programming in Objective C 2.0". I'm writing my code in XCode on a Mac and I'm trying to do Program 2.2 in the book if anybody is familiar with the book. I'm using the Command Line Tool and chose the Foundation type.

The problem I'm coming across is that NSLog appears to be displaying the results, but it displays the results so fast then closes it that I cannot even see what the results of the NSLog are. How can I set it up so that I can actually see the results?

I'm sure it probably has something to do with it being a command line routine, because I kind of ran into the same type of thing when I was learning VB.Net.

1 Answer

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    on the Run menu at the top of Xcode select console so it stays open... it shouldn't ever close and show all the output.

Still have questions? Get your answers by asking now.