aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-11-03 01:42:32 +0000
committerrowanbeentje <rowan@beent.je>2010-11-03 01:42:32 +0000
commit6d5927b835706d28ee8ec24254d7b5c19bf6e5fe (patch)
treeab9d3c93221afd14c0d1634a72437fb152ed129f /Source/SPTableContent.m
parente3b2ea1aa4b868db760d465e2a4319f86c475131 (diff)
downloadsequelpro-6d5927b835706d28ee8ec24254d7b5c19bf6e5fe.tar.gz
sequelpro-6d5927b835706d28ee8ec24254d7b5c19bf6e5fe.tar.bz2
sequelpro-6d5927b835706d28ee8ec24254d7b5c19bf6e5fe.zip
Add a new category to SPDatabaseDocument, allowing code cleanup and moving central functionality out of SPTablesList:
- Centralise control over table loading, moving it away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category - Centralise control over the main tab view, moving control away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category - Simplify and clean up view loading logic - Improve thread safety - Update localisable strings
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index fe9e37ec..3c44b980 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -2005,8 +2005,8 @@
NSUInteger i;
// Load table if not already done
- if ( ![tablesListInstance contentLoaded] ) {
- [self loadTable:[tablesListInstance tableName]];
+ if ( ![tableDocumentInstance contentLoaded] ) {
+ [self loadTable:[tableDocumentInstance table]];
}
tableColumns = [tableContentView tableColumns];
@@ -2060,8 +2060,8 @@
NSUInteger i;
// Load the table if not already loaded
- if ( ![tablesListInstance contentLoaded] ) {
- [self loadTable:[tablesListInstance tableName]];
+ if ( ![tableDocumentInstance contentLoaded] ) {
+ [self loadTable:[tableDocumentInstance table]];
}
tableColumns = [tableContentView tableColumns];