• 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: Andreas Falkenhahn <email@hidden>
  • Date: Sun, 12 Feb 2017 21:36:03 +0100

On 12.02.2017 at 21:29 Kyle Sluder wrote:

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

It's really old code. It's an Xcode project I originally created on a
PowerPC Mac some 10 years ago, so I don't really remember how I used
Interface Builder back then. All I see is that every single menu item
has an entry under "Sent Actions" that links to "AppDelegate: menuClick".
The menu events are then processed in the "menuClick" method of my
app delegate.

> 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:?

But how can that possibly happen? I'm certainly not deallocating the
app delegate myself...

--
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: Kyle Sluder <email@hidden>
References: 
 >Sometimes all my menus are disabled (From: Andreas Falkenhahn <email@hidden>)
 >Re: Sometimes all my menus are disabled (From: Kyle Sluder <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