Re: Modal window and 'hanging' menu
Re: Modal window and 'hanging' menu
- Subject: Re: Modal window and 'hanging' menu
- From: Jens Alfke <email@hidden>
- Date: Tue, 29 Apr 2008 17:30:03 -0700
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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