문제

In Xcode I've created a new Main Menu xib from the Main Menu template. It only contains the main-menu, which I would like to use in my app.

How can I load this Main Menu from this xib-file and use it in my different windows?

도움이 되었습니까?

해결책

You don't need to do anything.

An application's main menu is already global—it's part of the application, not of any individual window. The same menus will appear regardless of which window is active, by default.

You would have to put in some work if you wanted to go the other way and have different menus depending on which window is active.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top