aboutsummaryrefslogtreecommitdiffstats
path: root/TableDump.m
diff options
context:
space:
mode:
Diffstat (limited to 'TableDump.m')
-rw-r--r--TableDump.m33
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