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 (Cocoa-dev@lists.apple.com)
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 arch...@mail-archive.com