Sending an event from another thread
Sending an event from another thread
- Subject: Sending an event from another thread
- From: Ivan Galic <email@hidden>
- Date: Sat, 5 Jan 2008 01:20:33 +0100
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden