• 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: click on sub-menu's super-item dismisses menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: click on sub-menu's super-item dismisses menu?


  • Subject: Re: click on sub-menu's super-item dismisses menu?
  • From: Peter Ammon <email@hidden>
  • Date: Thu, 17 Sep 2009 15:26:59 -0700


On Sep 17, 2009, at 3:09 PM, David M. Cotter wrote:

say the user say clicks the file menu, the file menu opens
then say they hover over "recent items" and then clicks it (i don't know, out of habit or something)


in carbon, this click is ignored, rightfully it seems

in cocoa, it dismisses the menu. is there a way i can tell the menu or menu item to NOT dismiss the menu?

Hi David,

I can't reproduce this behavior in SnowLeopard - the Open Recents menu item does not dismiss the menu when clicked.

To answer your question: a menu item with a submenu will ignore clicks if its action is @selector(submenuAction:) or NULL. If the action is something else, then the menu item can be selected.
_______________________________________________


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: click on sub-menu's super-item dismisses menu?
      • From: "David M. Cotter" <email@hidden>
References: 
 >click on sub-menu's super-item dismisses menu? (From: "David M. Cotter" <email@hidden>)

  • Prev by Date: basic threading question: if parent thread completes
  • Next by Date: Re: basic threading question: if parent thread completes
  • Previous by thread: click on sub-menu's super-item dismisses menu?
  • Next by thread: Re: click on sub-menu's super-item dismisses menu?
  • Index(es):
    • Date
    • Thread