summaryrefslogtreecommitdiff
path: root/pkg/osx/Execute.m
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/osx/Execute.m')
-rw-r--r--pkg/osx/Execute.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/osx/Execute.m b/pkg/osx/Execute.m
index ffeddadd..0dcfbb7c 100644
--- a/pkg/osx/Execute.m
+++ b/pkg/osx/Execute.m
@@ -219,3 +219,13 @@ void OpenTerminalWindow(const char *doomwadpath)
withApplication: @"Terminal"];
}
+void OpenDocumentation(const char *filename)
+{
+ NSString *path;
+
+ path = [NSString stringWithFormat: @"%s/Documentation/%s",
+ executable_path, filename];
+
+ [[NSWorkspace sharedWorkspace] openFile: path];
+}
+