Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reducing the frequency of updates, to lower the ridiculous CPU usage.

  • Loading branch information...
commit 70b6d6541c678cb2b24553f2b31aeaa053c8b10d 1 parent 056ef45
@ELLIOTTCABLE authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 YRSolcounter.m
View
8 YRSolcounter.m
@@ -19,7 +19,7 @@ -(id) initWithBundle: (NSBundle*)bundle {
registerDefaults: [NSDictionary dictionaryWithContentsOfFile:
[bundle pathForResource: @"UserDefaults" ofType: @"plist"]]];
- timer = [NSTimer scheduledTimerWithTimeInterval: 0.0
+ timer = [NSTimer scheduledTimerWithTimeInterval: 0.0864
target: self
selector: @selector(handleTimer:)
userInfo: nil
@@ -34,14 +34,16 @@ -(id) initWithBundle: (NSBundle*)bundle {
[textField setFrame: NSMakeRect(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height - 1)];
NSURL *fontURL = [NSURL fileURLWithPath: [[self bundle] pathForResource: @"FertigoPro-Truncated"
- ofType: @"otf"
- inDirectory: @"Fonts"]];
+ ofType: @"otf"
+ inDirectory: @"Fonts"]];
// Core Foundation pain
radixFont = CTFontCreateWithGraphicsFont(
CGFontCreateWithDataProvider(CGDataProviderCreateWithURL((CFURLRef)fontURL)), 14.0, NULL, NULL);
// end Core Foundation pain
+ NSLog(@"radixFont: %@", radixFont);
+
[self handleTimer: nil];
[nib dealloc];
Please sign in to comment.
Something went wrong with that request. Please try again.