On Sun, Jun 19, 2011 at 1:14 PM, James Merkel <jmerk...@mac.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to