aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-29 18:32:43 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-29 18:32:43 +0000
commitd6b6cd9b10fb6562961be3714c529441f317aa7d (patch)
tree8dd4ef9e5e97dc3cbc9fb3d0c2969bff671c89c2 /Source/SPTableContent.m
parent289a0c98b50b6da590b50a14969dfd986bab18c3 (diff)
downloadsequelpro-d6b6cd9b10fb6562961be3714c529441f317aa7d.tar.gz
sequelpro-d6b6cd9b10fb6562961be3714c529441f317aa7d.tar.bz2
sequelpro-d6b6cd9b10fb6562961be3714c529441f317aa7d.zip
• save window's vertical divider position in spf files in order to be able to restore it
• do not save tabs or a single window if connectionController is shown • added comments • added to SPTableContent method "tablesListWidth" to retrieve tablesList's view width
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index d5ffb47c..75ab4f4a 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -2520,10 +2520,20 @@
*/
- (NSRect) viewport
{
+ NSLog(@"t %@", NSStringFromRect([[tablesListInstance valueForKeyPath:@"tablesListView"] frame]));
+ NSLog(@"c %@", NSStringFromRect([tableContentView visibleRect]));
return [tableContentView visibleRect];
}
/**
+ * Provide a getter for the table's list view width
+ */
+- (CGFloat) tablesListWidth
+{
+ return [[[[tableDocumentInstance valueForKeyPath:@"contentViewSplitter"] subviews] objectAtIndex:0] frame].size.width;
+}
+
+/**
* Provide a getter for the current filter details
*/
- (NSDictionary *) filterSettings