Re: Sometimes all my menus are disabled
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