Re: Sometimes all my menus are disabled

2017-02-13 Thread Graham Cox
> On 14 Feb 2017, at 3:58 AM, Andreas Falkenhahn wrote: > > This annoying issue is just another reason why I prefer doing things in code. > This has already cost me hours over hours and it's still not solved. > True, I can see that. But how do I rewire my nib? I don't remember anything > about

Re: Sometimes all my menus are disabled

2017-02-13 Thread Gary L. Wade
Well, you may have a valid bug to report to Apple. You probably would want to use a tech support incident, which will get feedback faster, and in the past, when the issue turned out to be Apple’s bug, they’ve credited it back to me. Otherwise, definitely mark this as a serious bug. -- Gary L.

Re: Sometimes all my menus are disabled

2017-02-13 Thread Andreas Falkenhahn
On 13.02.2017 at 19:49 Gary L. Wade wrote: > Your assignments for the File’s Owner and Application objects are > messed up. First, clear the custom class values for these two > objects. After that, connect the delegate outlet in the Application > object to your embedded AppDelegate object. Than

Re: Sometimes all my menus are disabled

2017-02-13 Thread Gary L. Wade
Your assignments for the File’s Owner and Application objects are messed up. First, clear the custom class values for these two objects. After that, connect the delegate outlet in the Application object to your embedded AppDelegate object. -- Gary L. Wade http://www.garywade.com/

Re: Sometimes all my menus are disabled

2017-02-13 Thread Andreas Falkenhahn
On 13.02.2017 at 18:16 Gary L. Wade wrote: > I haven't looked at your NIB, but I've seen something of what's > described with errant choices of diff tools and source code merging, That certainly can't be the case since I'm not using any diff or merging tools. It's also just a single developer pro

Re: Sometimes all my menus are disabled

2017-02-13 Thread Gary L. Wade
I haven't looked at your NIB, but I've seen something of what's described with errant choices of diff tools and source code merging, usually when a user just accepts a merge without eyeballing it. If you've got a history of your revisions, you should find where things changed badly. Also, if you

Re: Sometimes all my menus are disabled

2017-02-13 Thread Andreas Falkenhahn
On 13.02.2017 at 17:33 じょいすじょん wrote: > Yeah, my first suggestion didn't work, but points out the problem overall in > you nib. > Looks like somebody did try to edit the xml before and munged it. I certainly did not mess with the XML! Xcode must have messed this up when converting the nib file

Re: Sometimes all my menus are disabled

2017-02-13 Thread M Pulis
Consider getting an old PowerPC Mac, run your app as a blueprint and rebuild a new interface in the current Xcode. That will likely be faster than hacking away at your current nib, and a bit of fun as well. Take it one window at a time so you understand what is happening. That is how we bro

Re: Sometimes all my menus are disabled

2017-02-13 Thread じょいすじょん
Yeah, my first suggestion didn't work, but points out the problem overall in you nib. Looks like somebody did try to edit the xml before and munged it. You also have nested menu duplicates inside your menus in the nib file itself! MainMenu Hollywood Menu

Re: Sometimes all my menus are disabled

2017-02-13 Thread Andreas Falkenhahn
On 13.02.2017 at 16:40 じょいすじょん wrote: > You have a lot of dupes in your nib file connections. > For example, select the AppDelegate in the nib in IB, and look at the > Connections Inspector. > You'll see it has 2 Main Menu referencing outlets. > So it's hitting a random one of the two. > You hav

Re: Sometimes all my menus are disabled

2017-02-13 Thread Andreas Falkenhahn
On 13.02.2017 at 16:34 Steve Mills wrote: > 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 anyt

Re: Sometimes all my menus are disabled

2017-02-13 Thread じょいすじょん
You have a lot of dupes in your nib file connections. For example, select the AppDelegate in the nib in IB, and look at the Connections Inspector. You'll see it has 2 Main Menu referencing outlets. So it's hitting a random one of the two. You have this kind of duplication in lots of places in you

Re: Sometimes all my menus are disabled

2017-02-13 Thread Steve Mills
On Feb 13, 2017, at 08:50 AM, Steve Mills wrote: On Feb 13, 2017, at 08:12:59, Andreas Falkenhahn 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/guites

Re: Sometimes all my menus are disabled

2017-02-13 Thread Steve Mills
On Feb 13, 2017, at 08:12:59, Andreas Falkenhahn 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:

Re: Sometimes all my menus are disabled

2017-02-13 Thread Andreas Falkenhahn
On 12.02.2017 at 21:49 Kyle Sluder wrote: > There are plenty of ways to write refcounting bugs. But the > refcounting bug is just a theory. All we know for sure is that > something is disabling the menu items. I assume you have not turned > off the default autoenablesItems property on the menu, so