my app needs another incoming event after closing modal panel

2009-07-14 Thread Thomas Pesters
Hi, I'm having the following problem: - I'm opening a panel with a progress indicator - I'm starting a new thread with a background function (via NSThread detachNewThreadSelector) - I do NSApp runModalForWindow: for the progress panel - when the thread is finished, I close the progress panel

Re: my app needs another incoming event after closing modal panel

2009-07-14 Thread I. Savant
On Jul 14, 2009, at 8:33 AM, Thomas Pesters wrote: ... When my app finishes the background thread, the progress window closes as expected, modal stops and the windows below get focus. But: only after an event arrives (moving the mouse or hitting a key) ... From what thread are you ending

Re: my app needs another incoming event after closing modal panel

2009-07-14 Thread Graham Cox
On 14/07/2009, at 10:33 PM, Thomas Pesters wrote: Hi, I'm having the following problem: - I'm opening a panel with a progress indicator - I'm starting a new thread with a background function (via NSThread detachNewThreadSelector) - I do NSApp runModalForWindow: for the progress panel - when