• 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
Re: Modal window and 'hanging' menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Modal window and 'hanging' menu [SOLVED]
      • From: Manfred Schwind <email@hidden>
References: 
 >Modal window and 'hanging' menu (From: Manfred Schwind <email@hidden>)

  • Prev by Date: Re: Any actor or coroutine implementations for Cocoa?
  • Next by Date: Re: Tiger bug on NSXMLParser?
  • Previous by thread: Re: Modal window and 'hanging' menu
  • Next by thread: Re: Modal window and 'hanging' menu [SOLVED]
  • Index(es):
    • Date
    • Thread