PDA

View Full Version : Can't get NSLog to work in new iPhone SDK




nick718
Mar 29, 2008, 02:30 PM
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



nick718
Mar 29, 2008, 02:32 PM
I just saw another thread on this, sorry for the dupe.

cmaier
Mar 29, 2008, 07:20 PM
I just saw another thread on this, sorry for the dupe.

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.

Monkaaay
Mar 29, 2008, 11:16 PM
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.