Outside of Xcode, when I run the program (a "Command line tool") directly from
the bash shell, it prints out in UTC "unixy" format:
2019-08-31 01:00:01 +
...but at the same time it gets logged in the Console log as:
Fri Aug 30 18:00:01 2019
Same result if I run it as a system daemon. So as
Wildly guessing here, but could be that NSLog uses different implementations
depending on how it was launched. It could be using os_log() under the hood,
which doesn't necessarily format all parameters right away, but rather just
sends them to the logging system, which then formats it?
Cheers,
> On 12. Aug 2019, at 05:26, Kurt Bigler via Cocoa-dev
> wrote:
>
> On 8/10/19 2:38:00 PM, Uli Kusterer wrote:
>>> On 10. Aug 2019, at 23:02, Kurt Bigler wrote:
>>> Currently if I call NSApplicationMain instead of my regular Carbon event
>>> loop (which is based on ReceiveNextEvent), NSApplica