Re: Using /dev/stdout in a sandboxed app


Chris Hanson
 

Sure, just use NSTask’s own standardInput, standardOutput, and standardError support with NSPipe. No need to tell the task to send its stdout to some intermediate file that your app then opens and reads from. (Whether it’s in /dev or anywhere else.)

-- Chris

Join {cocoa@apple-dev.groups.io to automatically receive all group messages.