• 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
my app needs another incoming event after closing modal panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

my app needs another incoming event after closing modal panel


  • Subject: my app needs another incoming event after closing modal panel
  • From: Thomas Pesters <email@hidden>
  • Date: Tue, 14 Jul 2009 14:33:02 +0200

Hi,

I'm having the following problem:

- I'm opening a panel with a progress indicator
- I'm starting a new thread with a background function (via NSThread
detachNewThreadSelector)
- I do NSApp runModalForWindow: for the progress panel
- when the thread is finished, I close the progress panel ("orderOut:self")
and do [NSApp abortModal];

When my app finishes the background thread, the progress window closes as
expected, modal stops and the windows below get focus. But: only after an
event arrives (moving the mouse or hitting a key), the normal procedure of
the app continues (in my case an alert is supposed to open to show some
result of the just finished background processing, which does not open until
an event arrived).

What am I doing wrong?


greetings,

Thomas
_______________________________________________

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: my app needs another incoming event after closing modal panel
      • From: Graham Cox <email@hidden>
    • Re: my app needs another incoming event after closing modal panel
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: [iPhone] Network connection between 2 iPhones-Can GKVoiceChat be my solution?
  • Next by Date: Re: my app needs another incoming event after closing modal panel
  • Previous by thread: [MEET] Chicago CocoaHeads Tuesday July 14th
  • Next by thread: Re: my app needs another incoming event after closing modal panel
  • Index(es):
    • Date
    • Thread