• 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: Keeping a menu enabled with a modal dialog running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Keeping a menu enabled with a modal dialog running (From: Graham Cox <email@hidden>)

  • Prev by Date: Keeping a menu enabled with a modal dialog running
  • Next by Date: unsubscribe
  • Previous by thread: Keeping a menu enabled with a modal dialog running
  • Next by thread: unsubscribe
  • Index(es):
    • Date
    • Thread