From d62547eb8bd1391f25529b104e9f6eef3f3e7a70 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 11 Nov 2009 01:27:55 +0000 Subject: The framework shouldn't be displaying dialogs, get the delegate to do it. --- Source/TableDocument.m | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Source') diff --git a/Source/TableDocument.m b/Source/TableDocument.m index e8187334..71ac951f 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -3564,6 +3564,15 @@ return password; } +/** + * 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. */ -- cgit v1.2.3