aboutsummaryrefslogtreecommitdiffstats
path: root/CustomQuery.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2008-11-28 23:52:42 +0000
committerstuconnolly <stuart02@gmail.com>2008-11-28 23:52:42 +0000
commitddbed0ade57c4efecbb7cd9a09047a1ce80ae497 (patch)
tree68cc14f92f250de42cf175d56da9207a5610b396 /CustomQuery.m
parentd45adb6d2a0c305cc431d75cd20844dbe721f388 (diff)
downloadsequelpro-ddbed0ade57c4efecbb7cd9a09047a1ce80ae497.tar.gz
sequelpro-ddbed0ade57c4efecbb7cd9a09047a1ce80ae497.tar.bz2
sequelpro-ddbed0ade57c4efecbb7cd9a09047a1ce80ae497.zip
New Growl notification controller.
Diffstat (limited to 'CustomQuery.m')
-rw-r--r--CustomQuery.m29
1 files changed, 9 insertions, 20 deletions
diff --git a/CustomQuery.m b/CustomQuery.m
index dd85b4b4..2dd43fc4 100644
--- a/CustomQuery.m
+++ b/CustomQuery.m
@@ -24,8 +24,7 @@
#import "CustomQuery.h"
#import "TableDump.h"
-#import <Growl/Growl.h>
-
+#import "SPGrowlController.h"
@implementation CustomQuery
@@ -140,15 +139,10 @@ 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
- ];
+ // Query finished Growl notification
+ [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Query Finished"
+ description:[NSString stringWithFormat:NSLocalizedString(@"%@",@"description for query finished growl notification"), [errorText stringValue]]
+ notificationName:@"Query Finished"];
return;
}
@@ -194,15 +188,10 @@ 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
- ];
+ // Query finished Growl notification
+ [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Query Finished"
+ description:[NSString stringWithFormat:NSLocalizedString(@"%@",@"description for query finished growl notification"), [errorText stringValue]]
+ notificationName:@"Query Finished"];
}
- (IBAction)chooseQueryFavorite:(id)sender