Re: Progress Indicators Spin vs Bar
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