diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-19 20:19:43 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-19 20:19:43 +0000 |
commit | f85335a7f9fdbff012409bb2af8fecc81740eab0 (patch) | |
tree | f4f6678aa78b89b76fab7a10094f0cdd1b22be0f /cocoa/PSMTabBarControl/PSMProgressIndicator.m | |
parent | 5a259dadeb6b6b31f5cfe628cc62bfb7d86e25b4 (diff) | |
download | netsurf-f85335a7f9fdbff012409bb2af8fecc81740eab0.tar.gz netsurf-f85335a7f9fdbff012409bb2af8fecc81740eab0.tar.bz2 |
Implementing tabs and fixing scrolling.
svn path=/trunk/netsurf/; revision=11396
Diffstat (limited to 'cocoa/PSMTabBarControl/PSMProgressIndicator.m')
-rw-r--r-- | cocoa/PSMTabBarControl/PSMProgressIndicator.m | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cocoa/PSMTabBarControl/PSMProgressIndicator.m b/cocoa/PSMTabBarControl/PSMProgressIndicator.m new file mode 100644 index 000000000..f79852a26 --- /dev/null +++ b/cocoa/PSMTabBarControl/PSMProgressIndicator.m @@ -0,0 +1,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 |