• 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 setStandardOutput: then stringWithContentsOfFile gives empty string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string


  • Subject: Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
  • From: Rosyna <email@hidden>
  • Date: Mon, 27 Aug 2007 14:24:04 -0700

In fact, parsing tool output is very, very bad and should never be done.

See this reply by Jordan Hubbard on darwin-dev. http://lists.apple.com/archives/darwin-dev/2007/Aug/msg00107.html

So don't use NSTask to create any files to parse from command line tools. And don't use NSTask to directly parse the output of the tools. The output has changed in the past and they will change in the future.

Use the APIs instead.

Ack, at 8/27/07, Rosyna said:

Or he could just not use NSTask...

--


Sincerely, Rosyna Keller Technical Support/Carbon troll/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________

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 setStandardOutput: then stringWithContentsOfFile gives empty string
      • From: Alastair Houghton <email@hidden>
    • Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
      • From: Oleg Kibirev <email@hidden>
References: 
 >NSTask setStandardOutput: then stringWithContentsOfFile gives empty string (From: Gonzalo Castro <email@hidden>)
 >Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string (From: "Shawn Erickson" <email@hidden>)
 >Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string (From: Rosyna <email@hidden>)

  • Prev by Date: Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
  • Next by Date: Capturing Command-Tab and Command-Alt-Esc
  • Previous by thread: Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
  • Next by thread: Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
  • Index(es):
    • Date
    • Thread