Skip navigation.
 
mlSending an event from another thread
FROM : Ivan Galic
DATE : Sat Jan 05 01:20:33 2008

Hi,

I need to send a message from one thread to another, but I'd like to 
put it in the standard event queue of the NSApp. My main thread is 
running it's own message loop (nextEventMatchingMask....), and the 
other thread needs to send it a message that it needs to do something 
(open a window). I would like best if I could put a custom NSEvent of 
some sort into the queue so that the main thread receives it along 
with other events. Is this possible, and where should I look for info? 
If not, what would be the best way to do it?

Thanks,
Ivan

Related mailsAuthorDate
mlSending an event from another thread Ivan Galic Jan 5, 01:20
mlRe: Sending an event from another thread Nick Zitzmann Jan 5, 01:36