• 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: "David M. Cotter" <email@hidden>
  • Date: Thu, 17 Sep 2009 15:38:15 -0700

that was a theoretical example, here's a concrete one:

in Finder, which we all know is a Cocoa64 app, select a file and go file->open with
--> the menu disappears


now in XCode (also Cocoa64) go file->open recent
--> menu does NOT disappear

but thanks, that did the trick

On Sep 17, 2009, at 3:26 PM, Peter Ammon wrote:


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

  • Prev by Date: Re: basic threading question: if parent thread completes
  • Next by Date: Re: [myNSWindow setDocumentEdited:dirtyB] fail ??
  • Previous by thread: Re: 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