FROM : ?????? ??????
DATE : Fri Dec 24 14:49:16 2004
> > - the button on the dialog box doesn't work until the backgound
> > process is completed. It's bad! What I need is to be able to press the
> > button while the process is going and cancel it.
>
> Sounds like your "background" task runs in the main thread. This
> prevents events like keyboard input, mouse clicks, GUI updates etc. to
> be processed until your task is finished.
>
> The usual way would be to run all GUI stuff, i.e. your dialog, in the
> main thread and any lengthy calculations in another thread. "lengthy"
> might be something around 3 seconds processing time on a 366 MHz box.
but GUI updates work just okay!!!! The button blinks and a progress bar on the window flows... It just doesn't accept mouse clicks as you mentioned.
DATE : Fri Dec 24 14:49:16 2004
> > - the button on the dialog box doesn't work until the backgound
> > process is completed. It's bad! What I need is to be able to press the
> > button while the process is going and cancel it.
>
> Sounds like your "background" task runs in the main thread. This
> prevents events like keyboard input, mouse clicks, GUI updates etc. to
> be processed until your task is finished.
>
> The usual way would be to run all GUI stuff, i.e. your dialog, in the
> main thread and any lengthy calculations in another thread. "lengthy"
> might be something around 3 seconds processing time on a 366 MHz box.
but GUI updates work just okay!!!! The button blinks and a progress bar on the window flows... It just doesn't accept mouse clicks as you mentioned.
| Related mails | Author | Date |
|---|---|---|
| ?????? ?????? | Dec 23, 17:00 | |
| David Dunham | Dec 23, 18:07 | |
| Ken Anderson | Dec 23, 18:52 | |
| Phil | Dec 24, 06:53 | |
| ?????? ?????? | Dec 24, 13:27 | |
| Markus Hitter | Dec 24, 14:15 | |
| ?????? ?????? | Dec 24, 14:49 |






Cocoa mail archive

