FROM : Andréas Saudemont
DATE : Mon Oct 25 15:04:52 2004
Actually the documentation for NSTask's setStandardOutput: states that
"If you're using a pipe for the standard output, use an NSPipe
instance as the argument to this method. Don't create a handle for the
pipe and pass that as the argument. If you do, the write end of the
pipe won't be closed automatically."
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSTask.html#//apple_ref/doc/uid/20000317/BJFBCHCB
So you can pass 'fromPipe' as is to setStandardOutput:.
Andréas
--
http://andreassaudemont.net/
DATE : Mon Oct 25 15:04:52 2004
Actually the documentation for NSTask's setStandardOutput: states that
"If you're using a pipe for the standard output, use an NSPipe
instance as the argument to this method. Don't create a handle for the
pipe and pass that as the argument. If you do, the write end of the
pipe won't be closed automatically."
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSTask.html#//apple_ref/doc/uid/20000317/BJFBCHCB
So you can pass 'fromPipe' as is to setStandardOutput:.
Andréas
--
http://andreassaudemont.net/






Cocoa mail archive

