Commit Graph
21 Commits
Author SHA1 Message Date
Thierry Crozat a421962b38 OSX: Make sure the native file browser runs in the main thread 2017-07-26 23:31:24 +01:00
Thierry Crozat 4981b4bbef OSX: Make sure to release the NSOpenPanel immediately after closing it
This is an attempt to fix a difficult to reproduce issue where the NSOpenPanel
remains open in the background and locks the application. Some tests suggest
that it might fix the issue, but only time will tell.
2017-07-26 23:08:48 +01:00
Thierry Crozat 6162cd1c19 OSX: Set focus back to the ScummVM window when closing the native file browser 2017-07-26 23:08:39 +01:00
Thierry Crozat b8c2f26098 OSX: Clear pending events when closing the native file browser
This is to avoid dispatching to ScummVM events that were intended for
the NSOpenPanel dialog.
2017-07-26 21:50:32 +01:00
Eugene Sandulenko 355c4fa646 JANITORIAL: Remove more trailing spaces 2016-10-09 15:02:02 +02:00
Pawel Kolodziejski 9649e919e3 GUI: use newer define for OS X 10.10+ 2014-12-05 19:45:10 +01:00
Thierry Crozat b30e8e5f53 GUI: Treat bundles as directories in the OS X file browser
This allows selecting an app bundle when adding a game, which is
what is expected for the LucasArts Steam mac games.
2014-07-10 22:54:50 +01:00
Matthew Hoops eeeccd4b1f GUI: Fix the spelling of some variable/class names 2013-05-26 15:52:31 -04:00
Matthew Hoops f15a38558b GUI: Add missing include for IBAction
Hopefully will fix compilation on older Mac versions
2013-05-26 15:39:19 -04:00
Thierry Crozat fa7f1adf03 OSX: Fix memory leaks 2013-04-09 22:52:14 +01:00
Thierry Crozat f1d59de3d5 OSX: Allow user to display hidden files in the browser dialog 2013-03-17 18:14:21 +00:00
Thierry Crozat 5de0d081b7 OSX: Add missing include for NSURL
This fixes compilation on older systems (apparently on newer
systems it was already included indirectly).
2012-11-18 01:29:09 +00: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
Max Horn f57b66e984 MACOSX: Replace use of a 10.4 only API by one available since 10.0 2012-01-14 20:13:50 +01:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn 427dc1ae93 GUI: Move major widgets to new directory gui/widgets
Also renamed the source/header files, now they are more closely
aligned to how we rename most other source files

svn-id: r54264
2010-11-16 10:11:57 +00:00
Max Horn 44393b2dc8 ALL: Add code to help stop people from accidentally using "bad" APIs
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.

If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.

Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.

svn-id: r53961
2010-10-30 21:27:42 +00:00
Oystein Eftevaag 915c60c629 Using #include instead of #import to include some mac os x headers to avoid silly gcc warnings, that we'd otherwise have to remove -pedantic to get rid of
svn-id: r46597
2009-12-26 17:18:18 +00:00
Johannes Schickel 1a1b041d00 Add "End of namespace" comment.
svn-id: r46594
2009-12-26 16:57:34 +00:00
Oystein Eftevaag b21679e56e Buildbot compile fix for os x cross compile
svn-id: r46592
2009-12-26 16:00:41 +00:00
Oystein Eftevaag 925c1744ec Committing the actual new browser_osx.mm file, oops
svn-id: r46583
2009-12-26 13:48:14 +00:00