Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
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