FROM : Markus Hitter
DATE : Fri Dec 24 14:15:17 2004
Am 24.12.2004 um 13:27 schrieb $B'#'Z'\'d'`'b(B $B'"'`'b'k'Q'\(B:
> - 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.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
DATE : Fri Dec 24 14:15:17 2004
Am 24.12.2004 um 13:27 schrieb $B'#'Z'\'d'`'b(B $B'"'`'b'k'Q'\(B:
> - 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.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
| 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

