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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to