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 13:42:46 -0700
Or he could just not use NSTask...
I've found many times that people using NSTask are using it poorly,
especially when there is an API to directly access the information
they want (like the Process Manager) and they don't have to worry
about the output of the command line tool changing between OS X
releases.
Ack, at 8/27/07, Shawn Erickson said:
...or he could have the task output to a file, waitUnitExit on that
task, then read in the file generated.
--
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