FROM : Hamish Allan
DATE : Mon Apr 11 00:25:28 2005
On Sun, 10 Apr 2005 14:05:27 -0700, Chuck Soper <<email_removed>>
wrote:
> Hi Shawn,
>
> Beautiful! Using [myProgressIndicator setUsesThreadedAnimation:YES];
> works great. Thank you. And Joannou, thanks for your suggestion too.
>
> Chuck
As a matter of courtesy to your users, when you are performing a
time-consuming task you should provide a 'cancel' button. Follow
Joannou's suggestion of spawning a worker thread, and you can use a
dual-purpose callback function with a float argument (set the progress
bar in the UI) and a BOOL result (cancel or continue the worker
thread). Indeterminate progress bars should only really be used when
determinate ones would progress unevenly -- if you absolutely must use
one, you should provide a textual description of the steps that are
being taken which should change frequently enough to give your users
faith that the app has not frozen. As it stands, your users are going
to see the spinning beach ball of death, which you should always avoid
if at all possible.
Best wishes,
Hamish
DATE : Mon Apr 11 00:25:28 2005
On Sun, 10 Apr 2005 14:05:27 -0700, Chuck Soper <<email_removed>>
wrote:
> Hi Shawn,
>
> Beautiful! Using [myProgressIndicator setUsesThreadedAnimation:YES];
> works great. Thank you. And Joannou, thanks for your suggestion too.
>
> Chuck
As a matter of courtesy to your users, when you are performing a
time-consuming task you should provide a 'cancel' button. Follow
Joannou's suggestion of spawning a worker thread, and you can use a
dual-purpose callback function with a float argument (set the progress
bar in the UI) and a BOOL result (cancel or continue the worker
thread). Indeterminate progress bars should only really be used when
determinate ones would progress unevenly -- if you absolutely must use
one, you should provide a textual description of the steps that are
being taken which should change frequently enough to give your users
faith that the app has not frozen. As it stands, your users are going
to see the spinning beach ball of death, which you should always avoid
if at all possible.
Best wishes,
Hamish
| Related mails | Author | Date |
|---|---|---|
| Chuck Soper | Apr 10, 21:45 | |
| Joannou Ng | Apr 10, 22:34 | |
| Shawn Erickson | Apr 10, 22:48 | |
| Chuck Soper | Apr 10, 23:05 | |
| Hamish Allan | Apr 11, 00:25 | |
| Chuck Soper | Apr 11, 02:09 |






Cocoa mail archive

