• 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 with unzip
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask with unzip


  • Subject: Re: NSTask with unzip
  • From: Dave DeLong <email@hidden>
  • Date: Sat, 27 Nov 2010 09:55:35 -0800

What Scott said.  I use NSFileManager to create a file in NSTemporaryDirectory(), then point an NSFileHandle to that file for writing.  That NSFileHandle becomes the standard out of the task, and all the output of the task is written to the file, which I can then peruse and reuse later at my convenience.

Dave

On Nov 27, 2010, at 9:12 AM, Ben Haller wrote:

>  Dave, not sure what you mean here.  NSPipe uses NSFileHandle.  Does using an NSFileHandle directly change things somehow?  If so, why?
_______________________________________________

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

References: 
 >NSTask with unzip (From: "gMail.com" <email@hidden>)
 >Re: NSTask with unzip (From: Ben Haller <email@hidden>)
 >Re: NSTask with unzip (From: Dave DeLong <email@hidden>)
 >Re: NSTask with unzip (From: Ben Haller <email@hidden>)

  • Prev by Date: Re: respondsToSelector & "warning: may not respond"
  • Next by Date: Re: respondsToSelector & "warning: may not respond"
  • Previous by thread: Re: NSTask with unzip
  • Next by thread: Re: NSTask with unzip
  • Index(es):
    • Date
    • Thread