Building a GUI for Terminal Applications
Building a GUI for Terminal Applications
- Subject: Building a GUI for Terminal Applications
- From: Raphael Klein <email@hidden>
- Date: Tue, 14 Dec 2010 16:43:16 +0100
I'm working on an App to execute rsync in background.
The copying process works fine, now I want to output the progress of the download!
NSPipe *pipe = [[NSPipe alloc] init];
[task setStandardOutput:pipe];
[task setStandardError:pipe];
[task setStandardInput:[NSPipe
NSFileHandle *readHandle = [[task standardOutput]
[task launch];
NSData *readData=nil;
readData = [readHandle readDataToEndOfFile];
NSString *readString = [[NSString alloc] initWithData:readData encoding:NSASCIIStringEncoding];
NSLog(@"%@", readString);
There was a tutorial located at this url: http://developer.apple.com/samplecode/Sample_Code/Cocoa/Moriarity.htm
But I can not find it anymore.
Does anybody knows where it is located now.
Yours
ra
_______________________________________________
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