• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sending an event from another thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Sending an event from another thread
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Accessing script run handler from NSAppleScript
  • Next by Date: Re: Image scaling
  • Previous by thread: Re: Image scaling
  • Next by thread: Re: Sending an event from another thread
  • Index(es):
    • Date
    • Thread