aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-24 08:13:13 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-24 08:13:13 +0000
commit6b6a49809f314b3771243ace6c6df1294981bb10 (patch)
treeb7a71bbac4f17365e170aaeb26a62dce3a6efc7c /Source/SPTableData.m
parent6aecc3fb9d47c1384c0afc241ba884f2e764f87c (diff)
downloadsequelpro-6b6a49809f314b3771243ace6c6df1294981bb10.tar.gz
sequelpro-6b6a49809f314b3771243ace6c6df1294981bb10.tar.bz2
sequelpro-6b6a49809f314b3771243ace6c6df1294981bb10.zip
• tried to unify the displaying of error messages (mainly converted them into sheets)
• changed the alert for "Truncate table" - "Are you sure you want to delete ALL table records in the..." • added BWToolkitFramework copyright notice to credits.rtf
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m20
1 files changed, 16 insertions, 4 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 91b40a66..3f681b30 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -312,7 +312,10 @@
// Check for any errors, but only display them if a connection still exists
if (![[mySQLConnection getLastErrorMessage] isEqualToString:@""]) {
if ([mySQLConnection isConnected]) {
- NSRunAlertPanel(@"Error", [NSString stringWithFormat:@"An error occured while retrieving table information:\n\n%@", [mySQLConnection getLastErrorMessage]], @"OK", nil, nil);
+ NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"),
+ nil, nil, [NSApp mainWindow], self, nil, nil, nil,
+ [NSString stringWithFormat:NSLocalizedString(@"An error occured while retrieving table information.\nMySQL said: %@", @"message of panel when retrieving table information failed"),
+ [mySQLConnection getLastErrorMessage]]);
}
return nil;
}
@@ -600,7 +603,10 @@
// Check for any errors, but only display them if a connection still exists
if (![[mySQLConnection getLastErrorMessage] isEqualToString:@""]) {
if ([mySQLConnection isConnected]) {
- NSRunAlertPanel(@"Error", [NSString stringWithFormat:@"An error occured while retrieving table information:\n\n%@", [mySQLConnection getLastErrorMessage]], @"OK", nil, nil);
+ NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"),
+ nil, nil, [NSApp mainWindow], self, nil, nil, nil,
+ [NSString stringWithFormat:NSLocalizedString(@"An error occured while retrieving view information.\nMySQL said: %@", @"message of panel when retrieving view information failed"),
+ [mySQLConnection getLastErrorMessage]]);
}
return nil;
}
@@ -621,7 +627,10 @@
// Check for any errors, but only display them if a connection still exists
if (![[mySQLConnection getLastErrorMessage] isEqualToString:@""]) {
if ([mySQLConnection isConnected]) {
- NSRunAlertPanel(@"Error", [NSString stringWithFormat:@"An error occured while retrieving view information:\n\n%@", [mySQLConnection getLastErrorMessage]], @"OK", nil, nil);
+ NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"),
+ nil, nil, [NSApp mainWindow], self, nil, nil, nil,
+ [NSString stringWithFormat:NSLocalizedString(@"An error occured while retrieving view information.\nMySQL said: %@", @"message of panel when retrieving view information failed"),
+ [mySQLConnection getLastErrorMessage]]);
}
return nil;
}
@@ -703,7 +712,10 @@
// Check for any errors, only displaying them if the connection hasn't been terminated
if (![[mySQLConnection getLastErrorMessage] isEqualToString:@""]) {
if ([mySQLConnection isConnected]) {
- NSRunAlertPanel(@"Error", [NSString stringWithFormat:@"An error occured while retrieving table status:\n\n%@", [mySQLConnection getLastErrorMessage]], @"OK", nil, nil);
+ NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"),
+ nil, nil, [NSApp mainWindow], self, nil, nil, nil,
+ [NSString stringWithFormat:NSLocalizedString(@"An error occured while retrieving table status.\nMySQL said: %@", @"message of panel when retrieving view information failed"),
+ [mySQLConnection getLastErrorMessage]]);
}
return FALSE;
}