processing AppleEvents if a modal window is open?
processing AppleEvents if a modal window is open?
- Subject: processing AppleEvents if a modal window is open?
- From: Steve Christensen <email@hidden>
- Date: Tue, 16 Jun 2009 15:19:34 -0700
I am working on a plugin that runs inside a host app. Some of its
configuration is handled inside a modal window ([NSApp
runModalForWindow:window]) since the host app doesn't directly
support more complicated configuration options.
As part of the process, the plugin needs to query the host app for
some information, and the only way to do so is via AppleEvents. I'm
running the AppleEvent in a separate thread, but when I call AESend,
the thread blocks just sits there waiting for the AppleEvent to be
sent and a reply received. As soon as I exit the modal event loop via
[NSApp stopModalWithCode:...], AESend finally completes and returns
its results.
So my question is: Is there is a way to process AppleEvents while
running in a modal event loop. Would using a NSModalSession allow
AppleEvents to be processed or am I just out of luck?
steve
_______________________________________________
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