diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/MainController.h | 1 | ||||
-rw-r--r-- | Source/MainController.m | 9 |
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]]; } |