Revision: 4476
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4476&view=rev
Author:   hofman
Date:     2008-08-29 17:09:53 +0000 (Fri, 29 Aug 2008)

Log Message:
-----------
Use accessor to make sure window is loaded.

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

Modified: trunk/SKProgressController.m
===================================================================
--- trunk/SKProgressController.m        2008-08-29 12:00:58 UTC (rev 4475)
+++ trunk/SKProgressController.m        2008-08-29 17:09:53 UTC (rev 4476)
@@ -72,71 +72,59 @@
 }
 
 - (void)setIndeterminate:(BOOL)flag {
-    [self window];
-    [progressBar setIndeterminate:flag];
+    [[self progressBar] setIndeterminate:flag];
 }
 
 - (double)minValue {
-    [self window];
-    return [progressBar minValue];
+    return [[self progressBar] minValue];
 }
 
 - (void)setMinValue:(double)newMinimum {
-    [self window];
-    [progressBar setMinValue:newMinimum];
+    [[self progressBar] setMinValue:newMinimum];
 }
 
 - (double)maxValue {
-    [self window];
-    return [progressBar maxValue];
+    return [[self progressBar] maxValue];
 }
 
 - (void)setMaxValue:(double)newMaximum {
-    [self window];
-    [progressBar setMaxValue:newMaximum];
+    [[self progressBar] setMaxValue:newMaximum];
 }
 
 - (double)doubleValue {
-    [self window];
-    return [progressBar doubleValue];
+    return [[self progressBar] doubleValue];
 }
 
 - (void)setDoubleValue:(double)doubleValue {
-    [self window];
-    [progressBar setDoubleValue:doubleValue];
-    [progressBar displayIfNeeded];
+    [[self progressBar] setDoubleValue:doubleValue];
+    [[self progressBar] displayIfNeeded];
 }
 
 - (void)incrementBy:(double)delta {
-    [self window];
-    [progressBar incrementBy:delta];
-    [progressBar displayIfNeeded];
+    [[self progressBar] incrementBy:delta];
+    [[self progressBar] displayIfNeeded];
 }
 
 - (void)beginSheetModalForWindow:(NSWindow *)window {
-    [self window];
-    [progressBar startAnimation:self];
+    [[self progressBar] startAnimation:self];
     [(SKApplication *)NSApp setUserAttentionDisabled:YES];
     [NSApp beginSheet:[self window] modalForWindow:window modalDelegate:nil 
didEndSelector:NULL contextInfo:NULL];
     [(SKApplication *)NSApp setUserAttentionDisabled:NO];
 }
 
 - (void)endSheet {
-    [self window];
-    [progressBar stopAnimation:self];
+    [[self progressBar] stopAnimation:self];
     [NSApp endSheet:[self window]];
     [[self window] orderOut:self];
 }
 
 - (void)show {
-    [self window];
-    [progressBar startAnimation:self];
+    [[self progressBar] startAnimation:self];
     [[self window] orderFront:self];
 }
 
 - (void)hide {
-    [self window];
-    [progressBar stopAnimation:self];
+    [[self progressBar] stopAnimation:self];
     [[self window] orderOut:self];
 }
 


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to