aboutsummaryrefslogtreecommitdiffstats
path: root/TableDump.m
diff options
context:
space:
mode:
authoravenjamin <avenjamin@gmail.com>2008-09-06 02:32:38 +0000
committeravenjamin <avenjamin@gmail.com>2008-09-06 02:32:38 +0000
commitbc8c9304e0153a5f888426f3d91fd3baee90714d (patch)
tree933a1ffdfd7fb971414cb869ceb0ff75ce9b7853 /TableDump.m
parent402fee4b8e3c3d6a5ae3ff018df0279edf0b191a (diff)
downloadsequelpro-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 'TableDump.m')
-rw-r--r--TableDump.m22
1 files changed, 22 insertions, 0 deletions
diff --git a/TableDump.m b/TableDump.m
index 17119cda..d5d0eaa3 100644
--- a/TableDump.m
+++ b/TableDump.m
@@ -28,6 +28,7 @@
#import "TableSource.h"
#import "TableContent.h"
#import "CustomQuery.h"
+#import <Growl/Growl.h>
@implementation TableDump
@@ -279,6 +280,16 @@ 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
+ ];
}
@@ -528,6 +539,17 @@ reads mysql-dumpfile
fieldMappingArray = nil;
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
+ ];
+
}
- (void)setupFieldMappingArray