Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal window and 'hanging' menu




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Modal window and 'hanging' menu (From: Manfred Schwind <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.