Thank you!

It seems to work.
Action was not set to anything, I just needed to set it for 0 in items having 
submenu.

Regards.


-----Original Message-----
From: Keary Suska [mailto:[email protected]] 
Sent: Monday, December 26, 2011 18:00
To: Dany Golubitsky
Cc: Cocoa-Dev List
Subject: Re: How to disable clicking parent menu item without disabling it?

On Dec 26, 2011, at 8:39 AM, Dany Golubitsky wrote:

> I want to disable some of parent top menu links with sub-menus, so that when 
> I click at the root top nothing should happen until I navigate and click to 
> its sub menus for specific action.
> 
> For example, In Cocoa, if I have menu File -> Recent -> "...Recent files 
> list...." , I can press "Recent". I want to prevent pressing "Recent". Can I 
> do it?

I don't know if I understand you correctly but any menu item without a 
target/action will do nothing when clicked, unless it has a sub-menu in which 
case it reveals its submenu.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to