Re: NSTask and uudecode

2010-01-27 Thread Stephen J. Butler
On Wed, Jan 27, 2010 at 11:37 AM, gMail.com wrote: > I have to decode a uuencoded NSString in memory so I use NSTask to launch > the unix command uudecode. If I set the output to a file, it works. But if I > setStandardOutput to a NSFileHandle I cannot later get any availableData. > Can you please

Re: NSTask and uudecode

2010-01-27 Thread Jens Alfke
On Jan 27, 2010, at 9:37 AM, gMail.com wrote: I have to decode a uuencoded NSString in memory so I use NSTask to launch the unix command uudecode. Why not just use a C function to uudecode? A minute's googling turned up http://en.literateprograms.org/UUencode_(C) I cannot later ge

NSTask and uudecode

2010-01-27 Thread gMail.com
I have to decode a uuencoded NSString in memory so I use NSTask to launch the unix command uudecode. If I set the output to a file, it works. But if I setStandardOutput to a NSFileHandle I cannot later get any availableData. Can you please tell me why? // -p should set the standard output. Eve