Revision: 5919
http://skim-app.svn.sourceforge.net/skim-app/?rev=5919&view=rev
Author: hofman
Date: 2009-10-20 21:03:09 +0000 (Tue, 20 Oct 2009)
Log Message:
-----------
retain the pdfview and its splitview as they may be swapped into the fullscreen
window
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2009-10-20 20:54:06 UTC (rev 5918)
+++ trunk/SKMainWindowController.m 2009-10-20 21:03:09 UTC (rev 5919)
@@ -275,6 +275,8 @@
[textColorAccessoryView release];
[leftSideDrawer release];
[rightSideDrawer release];
+ [pdfView release];
+ [pdfSplitView release];
[secondaryPdfEdgeView release];
[presentationNotesDocument release];
[leftSideButton release];
@@ -383,6 +385,8 @@
// Set up the window
// we retain as we might replace it with the full screen window
mainWindow = [[self window] retain];
+ [pdfView retain];
+ [pdfSplitView retain];
[self setWindowFrameAutosaveNameOrCascade:SKMainWindowFrameAutosaveName];
@@ -1560,13 +1564,11 @@
if ([self isFullScreen]) {
[pdfSplitView setFrame:[pdfContentView bounds]];
[pdfContentView addSubview:pdfSplitView];
- [pdfSplitView release];
[pdfEdgeView setEdges:BDSKMinXEdgeMask | BDSKMaxXEdgeMask |
BDSKMinYEdgeMask];
[secondaryPdfEdgeView setEdges:BDSKEveryEdgeMask];
} else {
[pdfView setFrame:[[pdfEdgeView contentView] bounds]];
[pdfEdgeView addSubview:pdfView];
- [pdfView release];
}
[pdfView setBackgroundColor:[[NSUserDefaults standardUserDefaults]
colorForKey:SKBackgroundColorKey]];
[secondaryPdfView setBackgroundColor:[[NSUserDefaults
standardUserDefaults] colorForKey:SKBackgroundColorKey]];
@@ -1635,7 +1637,6 @@
[contentView setAnimations:[NSDictionary dictionaryWithObject:animation
forKey:@"subviews"]];
[contentView setWantsLayer:YES];
[contentView displayIfNeeded];
- [view retain];
[[view animator] removeFromSuperview];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit