Skip to content

Instantly share code, notes, and snippets.

@moyashi
Created July 3, 2010 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moyashi/462762 to your computer and use it in GitHub Desktop.
Save moyashi/462762 to your computer and use it in GitHub Desktop.
#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