aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-11 01:27:55 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-11 01:27:55 +0000
commitd62547eb8bd1391f25529b104e9f6eef3f3e7a70 (patch)
tree395c9bb419d6028399667250bcab3e7a8252a742 /Source
parentae2abb7fb1a1f902939ca3d419f1f81cb95726f1 (diff)
downloadsequelpro-d62547eb8bd1391f25529b104e9f6eef3f3e7a70.tar.gz
sequelpro-d62547eb8bd1391f25529b104e9f6eef3f3e7a70.tar.bz2
sequelpro-d62547eb8bd1391f25529b104e9f6eef3f3e7a70.zip
The framework shouldn't be displaying dialogs, get the delegate to do it.
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index e8187334..71ac951f 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -3565,6 +3565,15 @@
}
/**
+ * Invoked when an attempt was made to execute a query on the current connection, but the connection is not
+ * actually active.
+ */
+- (void)noConnectionAvailable:(id)connection
+{
+ NSBeginAlertSheet(NSLocalizedString(@"No connection available", @"no connection available message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil, nil, nil, NSLocalizedString(@"An error has occured and there doesn't seem to be a connection available.", @"no connection available informatie message"));
+}
+
+/**
* Invoked when the connection fails and the framework needs to know how to proceed.
*/
- (MCPConnectionCheck)connectionLost:(id)connection