Re: Sometimes all my menus are disabled
Re: Sometimes all my menus are disabled
- Subject: Re: Sometimes all my menus are disabled
- From: Steve Mills <email@hidden>
- Date: Mon, 13 Feb 2017 15:34:26 +0000 (GMT)
On Feb 13, 2017, at 08:50 AM, Steve Mills <email@hidden> wrote:
On Feb 13, 2017, at 08:12:59, Andreas Falkenhahn <email@hidden> wrote:
Unfortunately, I don't know where to look because I remember nothing about
Interface Builder. That's why I have uploaded a VERY SMALL test project
here: http://www.falkenhahn.com/tmp/guitest.tar.gz
Same problem here. I added this:
-(BOOL)validateMenuItem:(NSMenuItem *)menuItem
{
NSLog(@"%@", menuItem.title);
return YES;
}
to help see what's going on. When it works, it logs About, Prefs, and Plugins. When it fails, it only logs About and Prefs. Gotta get to the office now, or I'd investigate further.
I've dinked around with it a bit more and ended up replacing MainMenu.nib with a new MainMenu.xib. That fixes it. I'm on an older Xcode now, so I can't open your MainMenu.nib, so I opened its designable.nib with a text editor to see if there's anything obvious. One thing that's really weird is that all the menus for the menubar are also duplicated as submenu items of the first separator after the About item. Although it's not an exact copy, since Plugins doesn't appear in that version of the app menu.
So yeah, make a new xib and throw the old one out.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
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