summaryrefslogtreecommitdiff
path: root/cocoa/PSMTabBarControl/PSMProgressIndicator.m
blob: f79852a263a3f717406ea9520d23993163e2c4ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
//  PSMProgressIndicator.m
//  PSMTabBarControl
//
//  Created by John Pannell on 2/23/06.
//  Copyright 2006 Positive Spin Media. All rights reserved.
//

#import "PSMProgressIndicator.h"

@implementation PSMProgressIndicator

// overrides to make tab bar control re-layout things if status changes
- (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];
}
@end