From d6b6cd9b10fb6562961be3714c529441f317aa7d Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 29 Jun 2010 18:32:43 +0000 Subject: =?UTF-8?q?=E2=80=A2=20save=20window's=20vertical=20divider=20posi?= =?UTF-8?q?tion=20in=20spf=20files=20in=20order=20to=20be=20able=20to=20re?= =?UTF-8?q?store=20it=20=E2=80=A2=20do=20not=20save=20tabs=20or=20a=20sing?= =?UTF-8?q?le=20window=20if=20connectionController=20is=20shown=20?= =?UTF-8?q?=E2=80=A2=20added=20comments=20=E2=80=A2=20added=20to=20SPTable?= =?UTF-8?q?Content=20method=20"tablesListWidth"=20to=20retrieve=20tablesLi?= =?UTF-8?q?st's=20view=20width?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTableContent.m | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/SPTableContent.m') diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index d5ffb47c..75ab4f4a 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -2520,9 +2520,19 @@ */ - (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 */ -- cgit v1.2.3