Re: Keeping a menu enabled with a modal dialog running
Re: Keeping a menu enabled with a modal dialog running
- Subject: Re: Keeping a menu enabled with a modal dialog running
- From: Kyle Sluder <email@hidden>
- Date: Sun, 28 Oct 2012 18:42:02 -0700
On Oct 28, 2012, at 3:40 PM, Graham Cox <email@hidden> wrote:
> Hi all,
>
> I have a menu item that should be available in my app no matter what. Currently its target is the app delegate and it does not go through First Responder. However, it is greyed out when a modal dialog is running which is annoying. Is there a way to ensure that such a menu can still be responded to (enabled) when the modal dialog is up?
You may need to turn off autoenablesItems on your menu, add your app delegate as the menu's delegate, and implement -menuNeedsUpdate: to replicate the default logic except in the case of your always-enabled menu item.
--Kyle Sluder
_______________________________________________
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