aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-07-22 16:44:09 +0000
committerstuconnolly <stuart02@gmail.com>2009-07-22 16:44:09 +0000
commit4b40211b434928dd88a99142a813b46a2dacc95a (patch)
tree4ab0b73d866c465adef4b300e72304fddf9f79a8 /Source/TableDocument.m
parent48ca39af327bbba4a0fc565c37d3e165758cf731 (diff)
downloadsequelpro-4b40211b434928dd88a99142a813b46a2dacc95a.tar.gz
sequelpro-4b40211b434928dd88a99142a813b46a2dacc95a.tar.bz2
sequelpro-4b40211b434928dd88a99142a813b46a2dacc95a.zip
Remove delegate calls asking for SP specific TableDocument ivars, replacing them with more generic delegate methods.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m22
1 files changed, 20 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 8302f553..c3a5b3da 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -2024,7 +2024,7 @@
#pragma mark MCPKit connection delegate methods
/**
- * Invoked when framework is about to perform a query.
+ * Invoked when the framework is about to perform a query.
*/
- (void)willQueryString:(NSString *)query connection:(id)connection
{
@@ -2034,7 +2034,7 @@
}
/**
- * Invoked when the query just executed resulted in an error.
+ * Invoked when the query just executed by the framework resulted in an error.
*/
- (void)queryGaveError:(NSString *)error connection:(id)connection
{
@@ -2042,6 +2042,24 @@
}
/**
+ * Invoked when the framework is in the process of reconnecting to the server and needs to know
+ * which database to select.
+ */
+- (NSString *)onReconnectShouldSelectDatabase:(id)connection
+{
+ return selectedDatabase;
+}
+
+/**
+ * Invoked when the framework is in the process of reconnecting to the server and needs to know
+ * what encoding to use for the connection.
+ */
+- (NSString *)onReconnectShouldUseEncoding:(id)connection
+{
+ return _encoding;
+}
+
+/**
* Invoked when the current connection needs a password from the Keychain.
*/
- (NSString *)keychainPasswordForConnection:(MCPConnection *)connection