> On Oct 28, 2014, at 3:13 AM, Jonathan Taylor <jonathan.tay...@glasgow.ac.uk> 
> wrote:
> 
> If Xcode is running, printf goes to the Xcode console. If my program is 
> launched from the OS X console, printf will go there. My memory is that if 
> neither of these conditions are met then the output will go to the Console 
> Log as per NSLog. That doesn't seem to be the case any more. 

stderr gets logged to ASL and can be displayed in Console.app. I don't think 
stdout ever went anywhere in particular in an app launched via the GUI … it's 
always just been dropped on the floor.

I basically never use printf for logging in any code that might end up in a GUI 
app, I use fprintf(stderr, …) instead.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to