Revision: 3387
http://skim-app.svn.sourceforge.net/skim-app/?rev=3387&view=rev
Author: hofman
Date: 2008-02-06 10:15:47 -0800 (Wed, 06 Feb 2008)
Log Message:
-----------
Make sure the status nib in Sparkle is loaded before the button is auto-sized.
Modified Paths:
--------------
trunk/vendorsrc/andymatuschak/Sparkle/SUStatusController.m
Modified: trunk/vendorsrc/andymatuschak/Sparkle/SUStatusController.m
===================================================================
--- trunk/vendorsrc/andymatuschak/Sparkle/SUStatusController.m 2008-01-30
00:04:24 UTC (rev 3386)
+++ trunk/vendorsrc/andymatuschak/Sparkle/SUStatusController.m 2008-02-06
18:15:47 UTC (rev 3387)
@@ -68,6 +68,8 @@
buttonTitle = [aButtonTitle copy];
[self didChangeValueForKey:@"buttonTitle"];
+ // Make sure the window is loaded.
+ [self window];
[actionButton sizeToFit];
// Except we're going to add 15 px for padding.
[actionButton setFrameSize:NSMakeSize([actionButton frame].size.width +
15, [actionButton frame].size.height)];
@@ -93,9 +95,7 @@
- (void)setProgressValue:(double)value
{
- [self willChangeValueForKey:@"progressValue"];
progressValue = value;
- [self didChangeValueForKey:@"progressValue"];
}
- (double)maxProgressValue
@@ -105,17 +105,13 @@
- (void)setMaxProgressValue:(double)value
{
- [self willChangeValueForKey:@"maxProgressValue"];
maxProgressValue = value;
- [self didChangeValueForKey:@"maxProgressValue"];
[self setProgressValue:0];
}
- (void)setStatusText:(NSString *)aStatusText
{
- [self willChangeValueForKey:@"statusText"];
statusText = [aStatusText copy];
- [self didChangeValueForKey:@"statusText"];
}
@end
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit