• 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
download security hanging app - It's a more general Problem + Solution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

download security hanging app - It's a more general Problem + Solution


  • Subject: download security hanging app - It's a more general Problem + Solution
  • From: Robert Clair <email@hidden>
  • Date: Fri, 19 Dec 2008 09:53:37 -0500

It seems to be a more general bug with runModalForWindow: If anything grabs the focus while the app is starting (i.e. something that would require you click on the dock icon to get the app back - which the warning does) the modal window never becomes visible.

I can see the same thing by starting the app from the debugger and clicking on a different app before the debugged app is completely up.

The work around was to move the runModalForWindow: to

- (void)applicationDidBecomeActive:(NSNotification *)aNotification

with a static guard variable so that the reg window is launched only the first time the app becomes active in a session.

( applicationDidBecomeActive: isn't called until you click to get the app back.)

...Bob

_______________________________________________

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: does this crash make sense to anyone?
  • Next by Date: NSNoSelectionMarker example?
  • Previous by thread: SocketPort allocating
  • Next by thread: NSNoSelectionMarker example?
  • Index(es):
    • Date
    • Thread