• 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
processing AppleEvents if a modal window is open?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Any Good Core Animation Tutorials?
  • Next by Date: Re: to NIB or not to NIB
  • Previous by thread: Re: Bindings and nested preferences
  • Next by thread: Re: get ref to instance from IB
  • Index(es):
    • Date
    • Thread