aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-07-16 15:26:13 +0000
committerBibiko <bibiko@eva.mpg.de>2009-07-16 15:26:13 +0000
commite21905eda02d5fffebf9cfb5ac7fa825e30860d7 (patch)
tree7f03177d37aca609774b06307fc20ef81f27c52b /Source
parentc1b38e1929a723d3797e744dc8b30a906adf1c95 (diff)
downloadsequelpro-e21905eda02d5fffebf9cfb5ac7fa825e30860d7.tar.gz
sequelpro-e21905eda02d5fffebf9cfb5ac7fa825e30860d7.tar.bz2
sequelpro-e21905eda02d5fffebf9cfb5ac7fa825e30860d7.zip
Diffstat (limited to 'Source')
-rw-r--r--Source/MainController.h1
-rw-r--r--Source/MainController.m9
2 files changed, 10 insertions, 0 deletions
diff --git a/Source/MainController.h b/Source/MainController.h
index 823c9e97..59fc0e40 100644
--- a/Source/MainController.h
+++ b/Source/MainController.h
@@ -44,6 +44,7 @@
- (IBAction)donate:(id)sender;
- (IBAction)visitWebsite:(id)sender;
- (IBAction)visitHelpWebsite:(id)sender;
+- (IBAction)visitFAQWebsite:(id)sender;
// Getters
- (SPPreferenceController *)preferenceController;
diff --git a/Source/MainController.m b/Source/MainController.m
index b9d02d92..25ffdeb9 100644
--- a/Source/MainController.m
+++ b/Source/MainController.m
@@ -33,6 +33,7 @@
#define SEQUEL_PRO_HOME_PAGE_URL @"http://www.sequelpro.com/"
#define SEQUEL_PRO_DONATIONS_URL @"http://www.sequelpro.com/donate.html"
#define SEQUEL_PRO_FAQ_URL @"http://www.sequelpro.com/frequently-asked-questions.html"
+#define SEQUEL_PRO_DOCS_URL @"http://www.sequelpro.com/docs"
@implementation MainController
@@ -142,6 +143,14 @@
*/
- (IBAction)visitHelpWebsite:(id)sender
{
+ [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SEQUEL_PRO_DOCS_URL]];
+}
+
+/**
+ * Opens FAQ help link in default browser
+ */
+- (IBAction)visitFAQWebsite:(id)sender
+{
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SEQUEL_PRO_FAQ_URL]];
}