diff options
author | avenjamin <avenjamin@gmail.com> | 2008-09-06 02:32:38 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2008-09-06 02:32:38 +0000 |
commit | bc8c9304e0153a5f888426f3d91fd3baee90714d (patch) | |
tree | 933a1ffdfd7fb971414cb869ceb0ff75ce9b7853 /CustomQuery.m | |
parent | 402fee4b8e3c3d6a5ae3ff018df0279edf0b191a (diff) | |
download | sequelpro-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.m | 21 |
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 |