diff options
author | rowanbeentje <rowan@beent.je> | 2011-04-01 00:51:15 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-04-01 00:51:15 +0000 |
commit | 53c84acb6d2bea63d29a88153a8ae2ceffb6fe0a (patch) | |
tree | afa2790fb5dd5a23a0313d654abf442bf5f9a2c9 /Source/SPDatabaseDocument.m | |
parent | 9cb3057259b02c8d691112a36168117d7acac6bb (diff) | |
download | sequelpro-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/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 376d7d3f..751d7654 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -167,7 +167,7 @@ // Set the connection controller's delegate [connectionController setDelegate:self]; - + // Register observers for when the DisplayTableViewVerticalGridlines preference changes [prefs addObserver:self forKeyPath:SPDisplayTableViewVerticalGridlines options:NSKeyValueObservingOptionNew context:NULL]; [prefs addObserver:tableSourceInstance forKeyPath:SPDisplayTableViewVerticalGridlines options:NSKeyValueObservingOptionNew context:NULL]; @@ -202,6 +202,9 @@ // Hide the tabs in the tab view (we only show them to allow switching tabs in interface builder) [tableTabView setTabViewType:NSNoTabsNoBorder]; + // Hide the activity list + [self setActivityPaneHidden:[NSNumber numberWithInteger:1]]; + // Bind the background color of the create syntax text view to the users preference [createTableSyntaxTextView setAllowsDocumentBackgroundColorChange:YES]; @@ -5098,9 +5101,9 @@ { if(![hide integerValue] == 1) { [tableInfoScrollView setHidden:YES]; - [activitiesScrollView setHidden:NO]; + [documentActivityScrollView setHidden:NO]; } else { - [activitiesScrollView setHidden:YES]; + [documentActivityScrollView setHidden:YES]; [tableInfoScrollView setHidden:NO]; } } |