I have a cocoa application with two types of windows, each of which requires a different main menu to be displayed.
In my MainMenu.xib, I have the main MainMenu file. In Window1.xib I have Window1 and in Window2.xib I have Window2 and MainMenu.
When I open the first window, I have a default menu, when I open Window2, I get its menu.
However, when I switch back to Window1, I still see the Window2 menu. How to create a displayed menu after the key window?
source share