Re: click on sub-menu's super-item dismisses menu?
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