From 4b40211b434928dd88a99142a813b46a2dacc95a Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 22 Jul 2009 16:44:09 +0000 Subject: Remove delegate calls asking for SP specific TableDocument ivars, replacing them with more generic delegate methods. --- Source/TableDocument.m | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'Source') 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,13 +2034,31 @@ } /** - * 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 { [[SPQueryConsole sharedQueryConsole] showErrorInConsole:error]; } +/** + * 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. */ -- cgit v1.2.3