How to display log on console window.

Discussion in 'Mac Programming' started by pallavi0703, May 25, 2008.

  1. pallavi0703 macrumors newbie


    Dec 12, 2007
    Hello All ,
    I have build one carbon dll using Xcode 2.4 in release mode and calling it in one of my indesign plugin which is also build in release mode . I want to trace the variable values in my dll. Which function I should use to display values on to the console window.
    I have tried with syslog(LOG_INFO,"text is %s",DataString);
    But this is not working. Any other settings are necessary to view the log.
    Please tell me which function I should use to display the log on the console window.

  2. shadowfaux macrumors newbie

    May 19, 2008

    in order to format output you can do stuff like:

    NSLog("a number is %d + %d", integerObject1, integerObject2);
    NSLog("to print objective-c objects in general use %@", randomObjCObject);

Share This Page