• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPipe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: NSPipe
      • From: Ben Zarzycki <email@hidden>
References: 
 >NSPipe (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: Re: Determining image file types
  • Next by Date: Ordered NSDictionary
  • Previous by thread: NSPipe
  • Next by thread: Re: NSPipe
  • Index(es):
    • Date
    • Thread