Re: Progressbar Question
Re: Progressbar Question
- Subject: Re: Progressbar Question
- From: Michael Babin <email@hidden>
- Date: Sat, 17 Feb 2007 17:03:58 -0600
On Feb 17, 2007, at 3:23 PM, Tom Jones wrote:
So my first app is to use NSTask to run a Command line app and
parse it's
output. I've got it to run and I thought I did well until I tried
to start
with the progressbar. It wont start until my CLI app as finished.
results = [fh readDataToEndOfFile];
Not 100% sure of this, but I'm guessing that readDataToEndOfFile
blocks until the pipe is closed by your CLI app (when it is
finished). You might want to look into using
readToEndOfFileInBackgroundAndNotify instead.
--
Michael Babin email@hidden
Order N Development, LLC http://www.orderndev.com/
Goldfish Aquarium for Mac: http://www.lifeglobe.com/product/index.php?
pltid=2&ref=OrderNDev
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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