On 29 Apr '08, at 2:12 PM, Manfred Schwind wrote:
I have a modal dialog window that "pops up" at some time. I am doing the modal session with [NSApp runModalForWindow:window]. If the user has clicked into the menu bar just before this modal window opens, the menu is hanging down and can not be closed before the modal window is closed.
You probably shouldn't be putting up a modal dialog from within the menu-tracking runloop mode. You can use - performSelector:withObject:afterDelay:inModes: to defer the call that opens the modal dialog; use a delay of 0.0 but a modes array that includes only the default runloop mode.
—Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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 [EMAIL PROTECTED]