aboutsummaryrefslogtreecommitdiffstats
path: root/CustomQuery.m
diff options
context:
space:
mode:
authoravenjamin <avenjamin@gmail.com>2008-09-06 02:32:38 +0000
committeravenjamin <avenjamin@gmail.com>2008-09-06 02:32:38 +0000
commitbc8c9304e0153a5f888426f3d91fd3baee90714d (patch)
tree933a1ffdfd7fb971414cb869ceb0ff75ce9b7853 /CustomQuery.m
parent402fee4b8e3c3d6a5ae3ff018df0279edf0b191a (diff)
downloadsequelpro-bc8c9304e0153a5f888426f3d91fd3baee90714d.tar.gz
sequelpro-bc8c9304e0153a5f888426f3d91fd3baee90714d.tar.bz2
sequelpro-bc8c9304e0153a5f888426f3d91fd3baee90714d.zip
Growl Support Added. Issue #26
• Connected • Disconnected • Import Finished • Export Finished • Query Finished • Table Syntax Copied
Diffstat (limited to 'CustomQuery.m')
-rw-r--r--CustomQuery.m21
1 files changed, 21 insertions, 0 deletions
diff --git a/CustomQuery.m b/CustomQuery.m
index 7be3dd29..70b305d6 100644
--- a/CustomQuery.m
+++ b/CustomQuery.m
@@ -24,6 +24,7 @@
#import "CustomQuery.h"
#import "TableDump.h"
+#import <Growl/Growl.h>
@implementation CustomQuery
@@ -133,6 +134,16 @@ sets the tableView columns corresponding to the mysql-result
//query finished
[[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self];
+ // Query Finished Growl Notification
+ [GrowlApplicationBridge notifyWithTitle:@"Query Finished"
+ description:[NSString stringWithFormat:NSLocalizedString(@"%@",@"description for query finished growl notification"), [errorText stringValue]]
+ notificationName:@"Query Finished"
+ iconData:nil
+ priority:0
+ isSticky:NO
+ clickContext:nil
+ ];
+
return;
}
@@ -202,6 +213,16 @@ sets the tableView columns corresponding to the mysql-result
//query finished
[[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self];
+
+ // Query Finished Growl Notification
+ [GrowlApplicationBridge notifyWithTitle:@"Query Finished"
+ description:[NSString stringWithFormat:NSLocalizedString(@"%@",@"description for query finished growl notification"), [errorText stringValue]]
+ notificationName:@"Query Finished"
+ iconData:nil
+ priority:0
+ isSticky:NO
+ clickContext:nil
+ ];
}
- (IBAction)chooseQueryFavorite:(id)sender