summaryrefslogtreecommitdiff
path: root/frontends/cocoa/PSMTabBarControl/PSMProgressIndicator.m
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/cocoa/PSMTabBarControl/PSMProgressIndicator.m')
-rw-r--r--frontends/cocoa/PSMTabBarControl/PSMProgressIndicator.m27
1 files changed, 15 insertions, 12 deletions
diff --git a/frontends/cocoa/PSMTabBarControl/PSMProgressIndicator.m b/frontends/cocoa/PSMTabBarControl/PSMProgressIndicator.m
index afc727d7a..4532f31be 100644
--- a/frontends/cocoa/PSMTabBarControl/PSMProgressIndicator.m
+++ b/frontends/cocoa/PSMTabBarControl/PSMProgressIndicator.m
@@ -17,24 +17,27 @@
@implementation PSMProgressIndicator
-- (id) initWithFrame: (NSRect)frameRect
+- (id)initWithFrame:(NSRect)frameRect
{
- if ((self = [super initWithFrame: frameRect]) == nil) return nil;
- [self setControlSize: NSControlSizeSmall];
- return self;
+ if ((self = [super initWithFrame:frameRect]) == nil)
+ return nil;
+ [self setControlSize:NSControlSizeSmall];
+ return self;
}
// overrides to make tab bar control re-layout things if status changes
-- (void)setHidden:(BOOL)flag {
- [super setHidden:flag];
- [(PSMTabBarControl *)[self superview] update];
+- (void)setHidden:(BOOL)flag
+{
+ [super setHidden:flag];
+ [(PSMTabBarControl *)[self superview] update];
}
-- (void)stopAnimation:(id)sender {
- [NSObject cancelPreviousPerformRequestsWithTarget:self
- selector:@selector(startAnimation:)
- object:nil];
- [super stopAnimation:sender];
+- (void)stopAnimation:(id)sender
+{
+ [NSObject cancelPreviousPerformRequestsWithTarget:self
+ selector:@selector(startAnimation:)
+ object:nil];
+ [super stopAnimation:sender];
}
@end