Revision: 2565
http://skim-app.svn.sourceforge.net/skim-app/?rev=2565&view=rev
Author: hofman
Date: 2007-07-26 12:04:18 -0700 (Thu, 26 Jul 2007)
Log Message:
-----------
Make sure we don't change the side pane widths while setting up the window.
Modified Paths:
--------------
trunk/SKMainWindowController.h
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.h
===================================================================
--- trunk/SKMainWindowController.h 2007-07-26 18:30:09 UTC (rev 2564)
+++ trunk/SKMainWindowController.h 2007-07-26 19:04:18 UTC (rev 2565)
@@ -182,6 +182,8 @@
BOOL updatingFont;
BOOL updatingLine;
+ BOOL settingUpWindow;
+
NSMutableArray *pageLabels;
NSMutableArray *lastViewedPages;
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2007-07-26 18:30:09 UTC (rev 2564)
+++ trunk/SKMainWindowController.m 2007-07-26 19:04:18 UTC (rev 2565)
@@ -232,6 +232,8 @@
- (void)windowDidLoad{
NSUserDefaults *sud = [NSUserDefaults standardUserDefaults];
+ settingUpWindow = YES;
+
// Set up the panes and subviews, needs to be done before we resize them
[leftSideCollapsibleView setCollapseEdges:BDSKMaxXEdgeMask |
BDSKMinYEdgeMask];
@@ -374,6 +376,8 @@
// Observe notifications and KVO
[self registerForNotifications];
[self registerAsObserver];
+
+ settingUpWindow = NO;
}
- (void)registerForNotifications {
@@ -4374,7 +4378,7 @@
}
- (void)splitViewDidResizeSubviews:(NSNotification *)notification {
- if ([[self window] frameAutosaveName]) {
+ if ([[self window] frameAutosaveName] && settingUpWindow == NO) {
[[NSUserDefaults standardUserDefaults]
setFloat:NSWidth([leftSideContentBox frame]) forKey:SKLeftSidePaneWidthKey];
[[NSUserDefaults standardUserDefaults]
setFloat:NSWidth([rightSideContentBox frame]) forKey:SKRightSidePaneWidthKey];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit