• 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
Re: Progressbar Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Progressbar Question (From: Michael Babin <email@hidden>)

  • Prev by Date: Re: changing screensaver defaults causes system preferences to crash
  • Next by Date: Re: Toolbar icon highlighting
  • Previous by thread: Re: Progressbar Question
  • Next by thread: Custom PDF annotation widgets
  • Index(es):
    • Date
    • Thread