diff options
author | stuconnolly <stuart02@gmail.com> | 2008-11-28 23:52:42 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2008-11-28 23:52:42 +0000 |
commit | ddbed0ade57c4efecbb7cd9a09047a1ce80ae497 (patch) | |
tree | 68cc14f92f250de42cf175d56da9207a5610b396 /TableDump.m | |
parent | d45adb6d2a0c305cc431d75cd20844dbe721f388 (diff) | |
download | sequelpro-ddbed0ade57c4efecbb7cd9a09047a1ce80ae497.tar.gz sequelpro-ddbed0ade57c4efecbb7cd9a09047a1ce80ae497.tar.bz2 sequelpro-ddbed0ade57c4efecbb7cd9a09047a1ce80ae497.zip |
New Growl notification controller.
Diffstat (limited to 'TableDump.m')
-rw-r--r-- | TableDump.m | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/TableDump.m b/TableDump.m index 185becec..900632b1 100644 --- a/TableDump.m +++ b/TableDump.m @@ -28,8 +28,7 @@ #import "TableSource.h" #import "TableContent.h" #import "CustomQuery.h" -#import <Growl/Growl.h> - +#import "SPGrowlController.h" @implementation TableDump @@ -255,17 +254,11 @@ saves the export file NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil, nil, nil, NSLocalizedString(@"Couldn't write to file. Be sure that you have the necessary privileges.", @"message of panel when file cannot be written")); } - - // Export Finished Growl Notification - [GrowlApplicationBridge notifyWithTitle:@"Export Finished" - description:[NSString stringWithFormat:NSLocalizedString(@"Finished exporting to %@",@"description for finished exporting growl notification"), [[sheet filename] lastPathComponent]] - notificationName:@"Export Finished" - iconData:nil - priority:0 - isSticky:NO - clickContext:nil - ]; - + + // Export finished Growl notification + [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Export Finished" + description:[NSString stringWithFormat:NSLocalizedString(@"Finished exporting to %@",@"description for finished exporting growl notification"), [[sheet filename] lastPathComponent]] + notificationName:@"Export Finished"]; } #pragma mark import methods @@ -587,16 +580,10 @@ reads mysql-dumpfile importArray = nil; } - // Import Finished Growl Notification - [GrowlApplicationBridge notifyWithTitle:@"Import Finished" - description:[NSString stringWithFormat:NSLocalizedString(@"Finished importing %@",@"description for finished importing growl notification"), [[sheet filename] lastPathComponent]] - notificationName:@"Import Finished" - iconData:nil - priority:0 - isSticky:NO - clickContext:nil - ]; - + // Import finished Growl notification + [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Import Finished" + description:[NSString stringWithFormat:NSLocalizedString(@"Finished importing %@",@"description for finished importing growl notification"), [[sheet filename] lastPathComponent]] + notificationName:@"Import Finished"]; } - (void)setupFieldMappingArray |