Re: Opening a file for writing text in /private/var/log

2010-06-14 Thread Ken Thomases
On Jun 13, 2010, at 10:24 AM, Pierre Fournier wrote: > Hi,I want to log something in a file at /private/var/log, using NSFileHandle. Do you really want to do that? Have you considered ~/Library/Logs? Or using the Apple System Log facility

Re: Opening a file for writing text in /private/var/log

2010-06-14 Thread Nick Zitzmann
On Jun 13, 2010, at 9:24 AM, Pierre Fournier wrote: > Hi,I want to log something in a file at /private/var/log, using > NSFileHandle.With the app launched as root, everything runs ok using > [NSFileHandle fileHandleForWritingToURL:url error:&err]. I get a valid handle > and can write what I wa

Opening a file for writing text in /private/var/log

2010-06-14 Thread Pierre Fournier
Hi,I want to log something in a file at /private/var/log, using NSFileHandle.With the app launched as root, everything runs ok using [NSFileHandle fileHandleForWritingToURL:url error:&err]. I get a valid handle and can write what I want to. With the app launched as non-root user, I create an Au