Revision: 7336
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7336&view=rev
Author:   hofman
Date:     2011-07-09 11:07:59 +0000 (Sat, 09 Jul 2011)

Log Message:
-----------
use local variable for window

Modified Paths:
--------------
    trunk/SKPreferenceController.m

Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m      2011-07-08 12:29:52 UTC (rev 7335)
+++ trunk/SKPreferenceController.m      2011-07-09 11:07:59 UTC (rev 7336)
@@ -165,7 +165,7 @@
     [window setShowsToolbarButton:NO];
     
     // we want to restore the top of the window, while without the force it 
restores the bottom position without the size
-    [[self window] setFrameUsingName:SKPreferenceWindowFrameAutosaveName 
force:YES];
+    [window setFrameUsingName:SKPreferenceWindowFrameAutosaveName force:YES];
     [self setWindowFrameAutosaveName:SKPreferenceWindowFrameAutosaveName];
     
     SKAutoSizeButtons(resetButtons, NO);
@@ -192,14 +192,14 @@
     [window setTitle:[currentPane title]];
     
     view = [currentPane view];
-    CGFloat dh = NSHeight([[[self window] contentView] frame]) - NSMaxY([view 
frame]);
-    frame = [[self window] frame];
+    CGFloat dh = NSHeight([[window contentView] frame]) - NSMaxY([view frame]);
+    frame = [window frame];
     frame.size.width = width;
     frame.size.height -= dh;
     frame.origin.y += dh;
     [window setFrame:frame display:NO];
     
-    [[[self window] contentView] addSubview:view];
+    [[window contentView] addSubview:view];
 }
 
 - (void)windowDidResignMain:(NSNotification *)notification {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to