Commit graph

10 commits

Author SHA1 Message Date
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
Eugene Sandulenko
355c4fa646 JANITORIAL: Remove more trailing spaces 2016-10-09 15:02:02 +02:00
Colin Snover
1c0c540fa7 MACOS: Use 'unsigned int' instead of NSUInteger
NSUInteger apparently does not exist until macOS 10.5, but
buildbot targets 10.4.
2016-07-10 11:46:32 -05:00
Colin Snover
c294e4fbf8 MACOS: Fix sign comparison 2016-07-10 10:50:05 -05:00
Thierry Crozat
e917971681 OS X: Clean taskbar code
This involves moving the NSDockTilePlugIn code to backend/taskbar
and fixing style to follow our coding conventions. One make target
was also renamed. All in all there is no change in functionality with this
commit.
2016-03-25 20:26:01 +00:00
Thierry Crozat
50f9f19927 OS X: Fix access to NSArray items with older SDKs 2016-03-25 18:30:48 +00:00
Thierry Crozat
24ce588b86 OS X: Add missing includes for recently introduced taskbar code 2016-03-25 18:06:21 +00:00
Thierry Crozat
d519dd8ec3 OS X: Implement a Dock Tile Plugin to display recent games menu in dock
This allows to start a recently played game directly from the dock. The
ScummVM.app application should have been permanently added to the
dock and the menu is only present when ScummVM is not running. The
list of recently played game is written by the taskbar code in ScummVM.
The Dock Tile Plugin only reads that list to populate the menu.
2016-03-25 15:37:13 +00:00
Thierry Crozat
2671918c92 OS X: Implement saving recent games list to user preferences 2016-03-25 15:37:04 +00:00
Thierry Crozat
6d7fcdd2b5 OSX: Implement TaskbarManager for Mac OS X
This implements count badge, progress bar, and icon overlay.
It uses the NSDockTile API which is available since OS X 10.5.
The code compiles and run on older system but without doing
anything.
2014-02-23 21:54:47 +00:00