From bc8c9304e0153a5f888426f3d91fd3baee90714d Mon Sep 17 00:00:00 2001 From: avenjamin Date: Sat, 6 Sep 2008 02:32:38 +0000 Subject: Growl Support Added. Issue #26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Connected • Disconnected • Import Finished • Export Finished • Query Finished • Table Syntax Copied --- CustomQuery.m | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'CustomQuery.m') 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 @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 -- cgit v1.2.3