• 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: Sometimes all my menus are disabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sometimes all my menus are disabled


  • Subject: Re: Sometimes all my menus are disabled
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 12 Feb 2017 14:29:25 -0600


On Sun, Feb 12, 2017, at 11:01 AM, Andreas Falkenhahn wrote:
> I'm experiencing a strange issue with my app. Sometimes, maybe in 1 out
> of 10
> programs starts, all menus of my app are grayed out, including standard
> menus
> like "Services", "Hide XXX", "Hide Others", "Show All", "Minimize",
> "Zoom",
> "Bring All To Front", really everything is grayed out right after my app
> has
> launched!
>
> I don't really know what to do about this because I don't have any actual
> code
> in my app that relates to menus. The menu is created in Interface Builder
> and
> the individual items are connected to "AppDelegate menuClick:" in the
> "Sent Actions" part of Xcode. That's pretty much all I have.

You’ve wired up every single menu item to a single action in your app
delegate? That’s certainly non-standard.

By default, menus automatically enable/disable their items based on
whether the target can perform the action. Perhaps your app delegate is
being deallocated, and thus the menu is walking the responder chain and
failing to find a responder that responds to -menuClick:?

--Kyle Sluder

>
> What could be the problem here? How can I find out what's going awry
> here?
>
> As I said, in 9 of 10 attempts everything works fine, but in maybe 1 of
> 10
> attempts all menus are grayed out right after my app has launched, making
> it
> impossible to use my app :-(
>
> --
> Best regards,
>  Andreas Falkenhahn
>  mailto:email@hidden

_______________________________________________

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


  • Follow-Ups:
    • Re: Sometimes all my menus are disabled
      • From: Andreas Falkenhahn <email@hidden>
References: 
 >Sometimes all my menus are disabled (From: Andreas Falkenhahn <email@hidden>)

  • Prev by Date: Re: Sometimes all my menus are disabled
  • Next by Date: Re: Sometimes all my menus are disabled
  • Previous by thread: Re: Sometimes all my menus are disabled
  • Next by thread: Re: Sometimes all my menus are disabled
  • Index(es):
    • Date
    • Thread