aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableInfo.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-04-01 00:51:15 +0000
committerrowanbeentje <rowan@beent.je>2011-04-01 00:51:15 +0000
commit53c84acb6d2bea63d29a88153a8ae2ceffb6fe0a (patch)
treeafa2790fb5dd5a23a0313d654abf442bf5f9a2c9 /Source/SPTableInfo.m
parent9cb3057259b02c8d691112a36168117d7acac6bb (diff)
downloadsequelpro-53c84acb6d2bea63d29a88153a8ae2ceffb6fe0a.tar.gz
sequelpro-53c84acb6d2bea63d29a88153a8ae2ceffb6fe0a.tar.bz2
sequelpro-53c84acb6d2bea63d29a88153a8ae2ceffb6fe0a.zip
Fix Issue #1019 (Sidebar width not remembered):
- This may be due to an Apple bug. I tracked it down to purely SPDatabaseDocument having a reference outlet to the activity scroll view. - Removing the reference worked as a fix; removing all code that used that reference did not. - Renaming the reference, and removing SPTableInfo's use of a reference, appears to act as a workaround. If the reference is not renamed, the bug still mainfests (!!!)
Diffstat (limited to 'Source/SPTableInfo.m')
-rw-r--r--Source/SPTableInfo.m9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/SPTableInfo.m b/Source/SPTableInfo.m
index 6c7c216d..d06198b4 100644
--- a/Source/SPTableInfo.m
+++ b/Source/SPTableInfo.m
@@ -63,9 +63,6 @@
name:SPActivitiesUpdateNotification
object:nil];
- [tableInfoScrollView setHidden:NO];
- [activitiesScrollView setHidden:YES];
-
// Add activities header
[activities addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"ACTIVITIES", @"header for activities pane"), @"name", nil]];
[activitiesTable reloadData];
@@ -364,12 +361,10 @@
if(rowIndex > 0) return NO;
if(![tableInfoScrollView isHidden]) {
- [tableInfoScrollView setHidden:YES];
- [activitiesScrollView setHidden:NO];
+ [tableDocumentInstance setActivityPaneHidden:[NSNumber numberWithInteger:0]];
[[NSApp mainWindow] makeFirstResponder:activitiesTable];
} else {
- [activitiesScrollView setHidden:YES];
- [tableInfoScrollView setHidden:NO];
+ [tableDocumentInstance setActivityPaneHidden:[NSNumber numberWithInteger:1]];
[[NSApp mainWindow] makeFirstResponder:infoTable];
}