FROM : Jurgen Vermeiren
DATE : Mon Feb 04 19:31:15 2008
Hello,
This one is only a minor annoyance but it looks like a tough nut to crack:
I have an application whose main window has a drawer for logging. The
application spawns a thread that does some scientific computations, logs
the results and exits.
It all works well except that there is no way I can have the drawer to
open from within the secondary thread. The text view in the drawer does
get updated but I won't see it if the drawer is not already opened.
Now this thread does number crunching and does not have an event loop,
which might well be the problem. The drawer will remain stuck in the
NSDrawerOpeningState until after the termination of the secondary thread
and will not even react to subsequent open messages from within the main
thread (which of course has an event handler).
Any suggestion?
Jurgen
DATE : Mon Feb 04 19:31:15 2008
Hello,
This one is only a minor annoyance but it looks like a tough nut to crack:
I have an application whose main window has a drawer for logging. The
application spawns a thread that does some scientific computations, logs
the results and exits.
It all works well except that there is no way I can have the drawer to
open from within the secondary thread. The text view in the drawer does
get updated but I won't see it if the drawer is not already opened.
Now this thread does number crunching and does not have an event loop,
which might well be the problem. The drawer will remain stuck in the
NSDrawerOpeningState until after the termination of the secondary thread
and will not even react to subsequent open messages from within the main
thread (which of course has an event handler).
Any suggestion?
Jurgen
| Related mails | Author | Date |
|---|---|---|
| Jurgen Vermeiren | Feb 4, 19:31 | |
| glenn andreas | Feb 4, 19:59 | |
| Jurgen Vermeiren | Feb 5, 23:31 |






Cocoa mail archive

