Can't get NSLog to work in new iPhone SDK

Discussion in 'Mac Programming' started by nick718, Mar 29, 2008.

  1. macrumors newbie

    Joined:
    Jul 2, 2007
    #1
    Hi All,

    I am having a very basic problem after installing the new SDK. After not seeing log statements int he console in my current project, and then trying a bunch of things, I just decided to test in a new project.

    I create a new project based on the iPhone list template. Then I just add the following line to the applicationDidFinishLoading function>

    NSLog(@"TEST LOGGING");


    Shouldn't this make the message show in the debug console after I build and go and the app starts?

    What am I missing here?

    Thanks all
     
  2. thread starter macrumors newbie

    Joined:
    Jul 2, 2007
    #2
    I just saw another thread on this, sorry for the dupe.
     
  3. macrumors G3

    Joined:
    Jul 25, 2007
    Location:
    California
    #3
    I;ve actually decided i like the new behavior better. I have some logging in my save/load functions. It's necessary because the directory name for your application actually changes each time you build&run now (it didn't use to do that), and the new logging allows you to see logs even if you launch your program from the springboard icon.
     
  4. macrumors 6502

    Monkaaay

    Joined:
    Jun 19, 2006
    Location:
    Richmond, VA
    #4
    Don't worry about the duplicate. I think it goes to show how Apple needs better communication with the developer community. They could look to Microsoft on that. Microsoft does a great job of opening up and sharing with developers on their platform.
     

Share This Page