• 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
Building a GUI for Terminal Applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Building a GUI for Terminal Applications
      • From: Conrad Shultz <email@hidden>
  • Prev by Date: Re: cannot access __block variable of array type inside block
  • Next by Date: Intercepting cocoa/quartz/opengl Draw command.
  • Previous by thread: Re: cannot access __block variable of array type inside block
  • Next by thread: Re: Building a GUI for Terminal Applications
  • Index(es):
    • Date
    • Thread