• 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: Progress Indicators Spin vs Bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Progress Indicators Spin vs Bar


  • Subject: Re: Progress Indicators Spin vs Bar
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 19 Jun 2011 13:19:31 -0700

On Sun, Jun 19, 2011 at 1:14 PM, James Merkel <email@hidden> wrote:
> Then use the progress  indicator as follows;
>
>        ProgressController * progressController = nil;
>        progressController =[[ProgressController alloc] init];
>        NSLog(@"Progress window: %@\n", [progressController window]);
>        [progressController startProgressAnimation];
>        [progressController showWindow:self];
>
>        (Long processing)
>
>        [progressController close];
>        [progressController release];
>

Sounds like you're stalling the main thread. This is bad.

Put up the window, do your long task on a background thread. Call back
to the main thread when processing is complete. If possible,
periodically inform the user of your progress by calling back to the
main thread to update the contents of the progress panel.

--Kyle Sluder
_______________________________________________

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

References: 
 >Progress Indicators Spin vs Bar (From: James Merkel <email@hidden>)

  • Prev by Date: Progress Indicators Spin vs Bar
  • Next by Date: Re: Progress Indicators Spin vs Bar
  • Previous by thread: Progress Indicators Spin vs Bar
  • Next by thread: Re: Progress Indicators Spin vs Bar
  • Index(es):
    • Date
    • Thread