Commit graph

25 commits

Author SHA1 Message Date
Max Horn
34523aba7e JANITORIAL: Fix some typos 2021-08-04 15:43:15 +02:00
Matthew Duggan
e3a8524818 MACOSX: Remove unused variable 2020-10-10 15:03:08 +09:00
Thierry Crozat
5f30b95452 MACOSX: Fix compilation with 10.4 SDK for real (hopefully) 2020-08-30 23:57:05 +01:00
Thierry Crozat
3fc952a999 MACOSX: Fix compilation with SDK 10.4 (hopefully) 2020-08-30 19:42:19 +01:00
aryanrawlani28
8cfa8a5589 GUI: U32: Use u32 for menu items in mac 2020-08-30 14:43:41 +02:00
Thierry Crozat
8eac9606bc MACOSX: Check selector exists when trying to replace application menus
In particular it has been reported that setHelpMenu was introduced in
MacOS X 10.6. So hopefully this change will fix running ScummVM on
MacOS X 10.5 or older.

This might fix bug #11260: MAC OS X: App incomplete when launched on
OS X 10.5.8.
2020-03-22 20:36:35 +00:00
Bastien Bouclet
1d0d842e2a BUILD: Add the licence file for the Source Code Pro font 2019-05-05 08:52:12 +02:00
Thierry Crozat
66ef22d555 MACOSX: Improve opening files from the Help menu
Now in addition to rtf extension and no extension, it also looks
for the html and md extensions. Also unless the extension is RTF or
HTML, which are widely recognized, it explicitely indicate that the
file should be open with TextEdit.

This fixes bug #10938, with opening the README and NEWS file from
the Help menu failing when the bundle was compiled without using
pandoc and thus the only files available are the markdown ones.

Support for the html extension is to prepare for a future change
to have a nicer README than the plain text one.
2019-04-21 11:01:34 +01:00
Cameron Cawley
9dc2820a33 MACOSX: Fix compilation with the 10.4 SDK 2018-08-28 17:39:30 +01:00
Cameron Cawley
6b5c7e6928 MACOSX: Update link to documentation 2018-08-28 15:52:23 +02:00
angstsmurf
ebedc15437 MACOSX: Give every license file a menu item
We make a renamed copy of the three license files with non-standard
suffixes, to make them open in TextEdit by default.
2018-08-28 15:52:23 +02:00
angstsmurf
d4eca67d2a MACOSX: Keep the original license files when combining 2018-08-28 15:52:23 +02:00
Cameron Cawley
8b5f7d247a MACOSX: Fix compilation with the 10.9 SDK and below 2018-08-28 15:52:23 +02:00
Colin Snover
9686d8c8e6 MACOSX: Put documentation links in Help menu
The local documents are not currently internationalised simply
because the internationalised resources are not put into the right
places (NSBundle will handle this automatically when they are);
Trac#10464 is a tracking bug for this outstanding issue.

Fixes Trac#10437.
2018-08-28 15:52:23 +02:00
Colin Snover
b8f89a772e MACOS: Fix builds on case-sensitive filesystems 2017-09-10 23:30:25 -05:00
Colin Snover
6e2f18c498 MACOS: Fix warnings about undeclared selectors
When -Wundeclared-selector is enabled (recommended by Apple), the
calls to the setBadgeLabel selector in MacOSXTaskbarManager are
warned on because NSDockTile declarations are not included because
they do not exist in macOS 10.4 and earlier. While I don't know
that we are even supporting such old macOS versions these days, it
is simple enough to fix this problem when compiling to modern
macOS versions by conditionally including the necessary header.
2017-09-10 22:17:16 -05:00
Colin Snover
56810b5598 MACOS: Fix deprecation warnings in macOS 10.12 2017-09-10 22:17:16 -05:00
Thierry Crozat
ef62422e59 OSX: Fix menus when using SDL2
We remove the menus added by SDL before inserting our own menus,
but the code assumed that there were two SDL generated menus. SDL2
actually adds three menus. So the new code makes no assumptions on
the number of menus so that it works with both SDL1.2 and SDL2.

Also fix an issue on OS X 10.4 and earlier that caused the app menu
to be nameless.
2015-12-16 20:42:11 +00:00
Johannes Schickel
63304ee9ec SDL: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Max Horn
a49f55878a OSX: Improve native OS X browser dialog
Signed-off-by: Thierry Crozat <criezy@scummvm.org>
2012-11-18 01:29:08 +00:00
Christoph Mallon
9f827e3392 JANITORIAL: Remove +x from files, which should not be executable. 2012-03-17 22:43:32 +01:00
Oystein Eftevaag
09ce3407b1 OSX: Avoid use of NSString:stringWithCString, for OS X 10.2 and 10.3 compatibility 2012-01-14 11:04:58 -05:00
Matthew Hoops
708f7739eb BACKENDS: Fix a typo 2011-07-13 09:30:15 -04:00
Matthew Hoops
7f58d62ba1 BACKENDS: Remove unneeded define check 2011-07-13 09:28:53 -04:00
Matthew Hoops
cde3a3d9a0 BACKENDS: Rename appMenu_osx.* to appmenu_osx.* 2011-07-13 09:26:50 -04:00
Renamed from backends/platform/sdl/macosx/appMenu_osx.mm (Browse further)