Created
July 3, 2010 19:11
-
-
Save moyashi/462762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "StatusBarCustomClockRefreshTimer.h" | |
@class SBStatusBarDataManager; | |
@implementation StatusBarCustomClockRefreshTimer | |
- (id) init { | |
if(self = [super init]){ | |
timer = [NSTimer scheduledTimerWithTimeInterval:0.5 | |
target:self | |
selector:@selector(onTimer:) | |
userInfo:nil | |
repeats:YES]; | |
} | |
return self; | |
} | |
- (void) onTimer:(NSTimer*)timer { | |
[[objc_getClass("SBStatusBarDataManager") sharedDataManager] _updateTimeItem]; | |
} | |
- (void) dealloc { | |
[timer release]; | |
[super dealloc]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment