• 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 [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal window and 'hanging' menu [SOLVED]


  • Subject: Re: Modal window and 'hanging' menu [SOLVED]
  • From: John Stiles <email@hidden>
  • Date: Wed, 30 Apr 2008 10:05:34 -0700

Manfred Schwind wrote:
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.

Thanks for all the answers.
cancelTracking did not work; whyever. I called it recursively for every NSMenu in the mainMenu. The hanging menu does not close.


File a radar then... that should work. It's new in Leopard so it's possible that it's not being used extensively yet (IOW it's not well tested).
The suggested performSelector:withObject:afterDelay:inModes: works perfectly; the opening of the dialog will be delayed until the menu closes. Thank you!
Honestly I think this was the best suggestion anyway (wish I had thought of it myself ;) )

_______________________________________________

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


References: 
 >Modal window and 'hanging' menu (From: Manfred Schwind <email@hidden>)
 >Re: Modal window and 'hanging' menu (From: Jens Alfke <email@hidden>)
 >Re: Modal window and 'hanging' menu [SOLVED] (From: Manfred Schwind <email@hidden>)

  • Prev by Date: Re: Modal window and 'hanging' menu [SOLVED]
  • Next by Date: Re: beginSheetModalForWindow: and Distributed Objects
  • Previous by thread: Re: Modal window and 'hanging' menu [SOLVED]
  • Next by thread: Predicate to get objects in a NSDate interval
  • Index(es):
    • Date
    • Thread