aboutsummaryrefslogtreecommitdiff
path: root/backends/taskbar
diff options
context:
space:
mode:
authorThierry Crozat2016-03-20 21:27:47 +0000
committerThierry Crozat2016-03-25 15:37:13 +0000
commitd519dd8ec3ee7258ed3657821990553a84960e2a (patch)
tree7bf099f9fef3e2621e3a27f035f766c7f6a4fc04 /backends/taskbar
parent2671918c92d68733e651fa870ee0e1de167ed128 (diff)
downloadscummvm-rg350-d519dd8ec3ee7258ed3657821990553a84960e2a.tar.gz
scummvm-rg350-d519dd8ec3ee7258ed3657821990553a84960e2a.tar.bz2
scummvm-rg350-d519dd8ec3ee7258ed3657821990553a84960e2a.zip
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.
Diffstat (limited to 'backends/taskbar')
-rw-r--r--backends/taskbar/macosx/macosx-taskbar.mm16
1 files changed, 0 insertions, 16 deletions
diff --git a/backends/taskbar/macosx/macosx-taskbar.mm b/backends/taskbar/macosx/macosx-taskbar.mm
index 1b19ea0c56..0b1f6b9f48 100644
--- a/backends/taskbar/macosx/macosx-taskbar.mm
+++ b/backends/taskbar/macosx/macosx-taskbar.mm
@@ -232,9 +232,6 @@ return (path); \
}
void MacOSXTaskbarManager::addRecent(const Common::String &name, const Common::String &description) {
- // TODO: Implement recent list, maybe as a custom menu on dock tile when app is not running
- // See Dock Tile plug-in at https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/customizing_docktile/CreatingaDockTilePlug-in/CreatingaDockTilePlug-in.html
-
//warning("[MacOSXTaskbarManager::addRecent] Adding recent list entry: %s (%s)", name.c_str(), description.c_str());
if (_dockTile == nil)
@@ -290,19 +287,6 @@ void MacOSXTaskbarManager::addRecent(const Common::String &name, const Common::S
[dict release];
CFRelease(gameName);
CFRelease(desc);
-
-
- // The command to use would be "open " + path + " --args " + game.
- // NSString *cmdString = [NSString stringWithFormat:@"open %@ --args %@", bundlePath, gameName];
- // We could use [[NSBundle mainBundle] bundlePath] to get the path here and then store it in the user preferences.
- // Or we can let the NSDockTilePlugin find the path with:
- // NSString *scummVMPath = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"org.scummvm.scummvm"];
- // We can then also use NSWorkspace to launch the app.
- // if (scummVMPath == nil)
- // return;
- // NSURL* url = [NSURL fileURLWithPath:scummVMPath];
- // [NSWorkspace launchApplicationAtURL:url options: configuration: error:] to start the application with some arguments
-
}