• 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: NSTask and NSPipe has buffering issues?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask and NSPipe has buffering issues?


  • Subject: Re: NSTask and NSPipe has buffering issues?
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 31 Jul 2012 17:14:38 -0700

On Tue, Jul 31, 2012, at 03:33 PM, Mr. Gecko wrote:
> I am having weird results with NSTask. It sometimes retrieves the output,
> and other times receives nothing.
>
> I have example code for this issue at
> https://dl.dropbox.com/u/610721/NSTask Issue.zip

NSTask requires a running runloop. Your code is a plain-ol' Foundation
tool and doesn't have a runloop.

I wouldn't be surprised if NSPipe has the same requirement.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTask and NSPipe has buffering issues?
      • From: "Mr. Gecko" <email@hidden>
References: 
 >NSTask and NSPipe has buffering issues? (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: NSTask and NSPipe has buffering issues?
  • Next by Date: Re: NSTask and NSPipe has buffering issues?
  • Previous by thread: Re: NSTask and NSPipe has buffering issues?
  • Next by thread: Re: NSTask and NSPipe has buffering issues?
  • Index(es):
    • Date
    • Thread