Cocoa: Add support for MainMenu.nib loading

This commit is contained in:
Camilla Löwy
2017-03-01 04:09:51 +01:00
parent 6d9a58bfef
commit c50aba1335
4 changed files with 31 additions and 9 deletions
+6 -4
View File
@@ -2085,10 +2085,12 @@ GLFWAPI void glfwWindowHint(int hint, int value);
* [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/)
* in the Mac Developer Library.
*
* @remark @macos The first time a window is created the menu bar is populated
* with common commands like Hide, Quit and About. The About entry opens
* a minimal about dialog with information from the application's bundle. The
* menu bar can be disabled with the @ref GLFW_COCOA_MENUBAR init hint.
* @remark @macos The first time a window is created the menu bar is created.
* If GLFW finds a `MainMenu.nib` it is loaded and assumed to contain a menu
* bar. Otherwise a minimal menu bar is created manually with common commands
* like Hide, Quit and About. The About entry opens a minimal about dialog
* with information from the application's bundle. Menu bar creation can be
* disabled entirely with the @ref GLFW_COCOA_MENUBAR init hint.
*
* @remark @macos On OS X 10.10 and later the window frame will not be rendered
* at full resolution on Retina displays unless the