Skip navigation.
 
mlRe: XCode3 & NSLog & Tiger compatibility
FROM : Jean-Daniel Dupas
DATE : Sat Mar 15 20:05:39 2008

Le 15 mars 08 à 19:08, Steve Cronin a écrit :

> Folks;
>
> I've finally begun to use XCode3 and I know I need to learn my way 
> around the new world.
>
> I have an existing Tiger project that I will be shipping under Tiger 
> but I need to ensure Leopard compatibility.
> So I can't convert it to the new world - I just need to be able to 
> run/debug it.
>
> So immediately I run into the changes to Run log -> Console.
> OK - I try and understand what's going on but I can't seem to find 
> anything useful which explains:
>
> If you have line of Tiger Code:
> NSLog(@"Hello World");
>
> Where does this output appear in XCode3?
> I can see it sometimes in the Console.app but not reliably...
> (I have setup a database query for my 'Sender'.)
> I can see it sometimes in the Console log in XCode but not reliably..
>
> I can't change the statements to ASL based statements per above..
>
> How can I best use XCode3 to accomplish this mission?
> Thanks!
> Steve


NSLog send output to the Xcode Console (Run>Console) if the 
application is launch within Xcode.

And it also send a line (using ASL) in the system logs (that you can 
show in Console.app) even when launched from Xcode.

So, if you launch your app in Xcode: log in Xcode Console + system logs.
Else, log only in system logs.

Related mailsAuthorDate
mlXCode3 & NSLog & Tiger compatibility Steve Cronin Mar 15, 19:08
mlRe: XCode3 & NSLog & Tiger compatibility Jean-Daniel Dupas Mar 15, 20:05