From b74377b6341d4b861b254ffcfb983d2cb27ec5b6 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 16 Oct 2009 00:31:27 +0000 Subject: Add a 'Provide Feedback' menu item to the help menu, which links to http://www.sequelpro.com/docs/Contact_the_developers. --- Source/SPAppController.h | 1 + Source/SPAppController.m | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'Source') diff --git a/Source/SPAppController.h b/Source/SPAppController.h index 473baa23..b01a069f 100644 --- a/Source/SPAppController.h +++ b/Source/SPAppController.h @@ -48,6 +48,7 @@ - (IBAction)visitWebsite:(id)sender; - (IBAction)visitHelpWebsite:(id)sender; - (IBAction)visitFAQWebsite:(id)sender; +- (IBAction)provideFeedback:(id)sender; // Getters - (SPPreferenceController *)preferenceController; diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 43d7b8c5..b0cf4ed5 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -36,6 +36,7 @@ #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" +#define SEQUEL_PRO_CONTACT_URL @"http://www.sequelpro.com/docs/Contact_the_developers" @implementation SPAppController @@ -380,6 +381,14 @@ [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SEQUEL_PRO_FAQ_URL]]; } +/** + * Opens the 'Contact the developers' page in the default browser + */ +- (IBAction)provideFeedback:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SEQUEL_PRO_CONTACT_URL]]; +} + #pragma mark - #pragma mark Other methods -- cgit v1.2.3