Permalink
Browse files

(minor) Exposing `YRSolcounter` methods

  • Loading branch information...
1 parent 318bd9c commit c1b7bea76e06fb1572bc3edcd4e8ad577736af36 @ELLIOTTCABLE committed Jun 9, 2010
Showing with 6 additions and 2 deletions.
  1. +3 −0 YRSolcounter.h
  2. +3 −2 YRSolcounter.m
View
3 YRSolcounter.h
@@ -20,4 +20,7 @@
NSTimer *timer;
}
+-(id) initWithBundle: (NSBundle*)bundle;
+-(void) handleTimer: (NSTimer*)_;
+
@end
View
5 YRSolcounter.m
@@ -30,12 +30,13 @@ -(id) initWithBundle: (NSBundle*)bundle {
[nib instantiateNibWithOwner: self topLevelObjects: /* sets `textField` */ nil];
[self setView: textField];
+ [self handleTimer: nil];
+
[nib dealloc];
return self;
}
--(void) handleTimer: (NSTimer*)_
-{
+-(void) handleTimer: (NSTimer*)_ {
double date = [[NSDate date] timeIntervalSince1970];
[textField setStringValue:

0 comments on commit c1b7bea

Please sign in to comment.