Re: NSPipe
Re: NSPipe
- Subject: Re: NSPipe
- From: Allan Odgaard <email@hidden>
- Date: Fri, 11 Jun 2004 02:33:47 +0200
On 11. Jun 2004, at 0:47, Daniel Todd Currie wrote:
[calculatorTask setStandardError:[NSPipe pipe]];
This sends the parse error notes to some undefined pipe, which is fine
for me, but what is it actually doing? Since the pipe I have created
there is autoreleased, does that mean that the parse error note will
just be released as well?
The calculatorTask should retain it.
Will these error notes accumulate somewhere else?
Yes, they'll be buffered so that the other end of the pipe can read
them. I'm not sure, but I think what you're doing is bad because when
the buffer is full, writes to the pipe may hang, until there once again
is room in the buffer (which there never will, since no-one is reading
from the pipe).
What you should probably do is instead set stderr to /dev/null.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >NSPipe (From: Daniel Todd Currie <email@hidden>) |