FROM : Damien Sorresso
DATE : Sat Jul 01 03:09:12 2006
I'm trying to redirect NSLog()'s output to a file. Since it writes to
stderr, I should be able to do this with
stderr->_write = my_stderr_write ,
where `my_stderr_write' is a pointer to one of my functions. This
works just fine if I use fprintf() to write to stderr, but NSLog()
stubbornly refuses to call my function. What exactly is NSLog() doing
here that is so special?
--
Damien Sorresso
Mac OS X Developer
Computer Infrastructure Support Services
Illinois State University
E-mail: damien.<email_removed>
DATE : Sat Jul 01 03:09:12 2006
I'm trying to redirect NSLog()'s output to a file. Since it writes to
stderr, I should be able to do this with
stderr->_write = my_stderr_write ,
where `my_stderr_write' is a pointer to one of my functions. This
works just fine if I use fprintf() to write to stderr, but NSLog()
stubbornly refuses to call my function. What exactly is NSLog() doing
here that is so special?
--
Damien Sorresso
Mac OS X Developer
Computer Infrastructure Support Services
Illinois State University
E-mail: damien.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Damien Sorresso | Jul 1, 03:09 | |
| Chris Suter | Jul 1, 04:12 | |
| Frode | Jul 2, 10:51 | |
| Michael Ash | Jul 2, 21:28 | |
| Aleksandr Skobelev | Jul 3, 12:06 |






Cocoa mail archive

