sdl2_frt/src/video/cocoa
Sam Lantinga 1c9595b16f Fixed bug 4415 - SDL menu bar is nonstandard on Mac
foo.null

I'm on macOS 10.14 and I think I'm using or around SDL 2.0.9. This is about the menu bar that SDL sets up which looks like:

<App Name> <Window> <View>

1. View menu never proceeds after the Window menu in any Mac application (it is always before).
2. For SDL, the only purpose of the View menu is for a single fullscreen menu item, which is not justifiable enough to reserve space for a menu. The View menu should thus be removed, and the full screen menu item should be added at the end inside of Window's menu. See built in apps like Dictionary, Chess, App Store (on 10.14) that do this.
3. SDL should add a "Close" menu item to the Window's submenu, and it should be the first item. Its key equivalent should map to command w. Without this, you cannot close the game window via this shortcut, and you cannot close the app's About window via this shortcut.
4. Apps typically use "Enter Full Screen" or "Exit Full Screen" depending on context, not "Toggle Full Screen" which is less user friendly -- I personally care about this point the least.
2018-12-08 11:06:40 -08:00
..
SDL_cocoaclipboard.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaclipboard.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaevents.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaevents.m Fixed bug 4415 - SDL menu bar is nonstandard on Mac 2018-12-08 11:06:40 -08:00
SDL_cocoakeyboard.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoakeyboard.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamessagebox.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamessagebox.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoametalview.h metal: Fix high dpi and resizing on macOS, and clean up iOS code. Fixes bug #4250. 2018-10-12 17:55:42 -03:00
SDL_cocoametalview.m metal: Fix high dpi and resizing on macOS, and clean up iOS code. Fixes bug #4250. 2018-10-12 17:55:42 -03:00
SDL_cocoamodes.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamodes.m Small stack allocations fall back to malloc if they're unexpectedly large. 2018-10-22 20:50:32 -04:00
SDL_cocoamouse.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamouse.m Temporary fix for bug 3432 - macOS 10.12: small scrolls (1 wheel notch) don't generate events 2018-03-10 21:13:50 -08:00
SDL_cocoamousetap.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamousetap.m macOS: Fix a crash when the video subsystem quits, if SDL_MAC_NO_SANDBOX was defined when SDL was compiled. 2018-09-30 11:26:41 -03:00
SDL_cocoaopengl.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaopengl.m cocoa: Put a mutex around GL_SwapBuffers. 2018-10-18 23:38:27 -04:00
SDL_cocoaopengles.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaopengles.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoashape.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoashape.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoavideo.h cocoa: Put a mutex around GL_SwapBuffers. 2018-10-18 23:38:27 -04:00
SDL_cocoavideo.m cocoa: Put a mutex around GL_SwapBuffers. 2018-10-18 23:38:27 -04:00
SDL_cocoavulkan.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoavulkan.m macOS: Fixed MoltenVK dynamic library loading code. 2018-10-12 23:23:52 -03:00
SDL_cocoawindow.h Some drag'and'drop improvements. 2018-08-02 16:03:47 -04:00
SDL_cocoawindow.m Fixed bug 4415 - SDL menu bar is nonstandard on Mac 2018-12-08 11:06:40 -08:00