FROM : Gerd Knops
DATE : Sat Nov 24 23:39:27 2007
On Nov 24, 2007, at 2:41 PM, Gerd Knops wrote:
> Seems the old trick
>
> freopen([logPath fileSystemRepresentation],"a",stderr);
>
> to catch NSLog output no longer works under Leopard. It catches
> anything written to stderr, but no NSLog output. Any ideas?
>
The point at which the above is executed is crucial. main() is to
early, so is +load. Seems to work if done in [NSApplication init].
Gerd
DATE : Sat Nov 24 23:39:27 2007
On Nov 24, 2007, at 2:41 PM, Gerd Knops wrote:
> Seems the old trick
>
> freopen([logPath fileSystemRepresentation],"a",stderr);
>
> to catch NSLog output no longer works under Leopard. It catches
> anything written to stderr, but no NSLog output. Any ideas?
>
The point at which the above is executed is crucial. main() is to
early, so is +load. Seems to work if done in [NSApplication init].
Gerd
| Related mails | Author | Date |
|---|---|---|
| Gerd Knops | Nov 24, 21:41 | |
| Gerd Knops | Nov 24, 23:39 | |
| Gerd Knops | Nov 25, 00:05 |






Cocoa mail archive

