On Oct 28, 2012, at 3:40 PM, Graham Cox <graham....@bigpond.com> 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 (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to