Re: Progressbar Question
Re: Progressbar Question
- Subject: Re: Progressbar Question
- From: Tom Jones <email@hidden>
- Date: Sun, 18 Feb 2007 11:12:27 -0800
- Thread-topic: Progressbar Question
Thanks,
I found a tutorial from cocoadev which makes sense. I needed to create a
constructor to use the NSNotificationCenter. Once I did that all was OK.
Thanks,
tom
On 2/17/07 3:03 PM, "Michael Babin" <email@hidden> wrote:
>
> 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