Mercurial > hg > tweakathon2ios
comparison TimedCallController.mm @ 0:a223551fdc1f
First commit - copy from tweakathlon.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 10 Oct 2014 11:46:42 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a223551fdc1f |
---|---|
1 // | |
2 // TimedSessionController.m | |
3 // sonicZoom | |
4 // | |
5 // Created by Robert Tubb on 18/02/2013. | |
6 // | |
7 // | |
8 | |
9 #import "TimedCallController.h" | |
10 @interface TimedCallController() | |
11 // private stuff | |
12 @end | |
13 | |
14 @implementation TimedCallController | |
15 | |
16 | |
17 // nicer if it was initWithAppRef ? | |
18 - (void)setAppRef:(id)theOFApp{ | |
19 self.theOFAppRef = theOFApp; | |
20 | |
21 } | |
22 -(void)startTimer{ | |
23 | |
24 } | |
25 -(void)resetTime:(int)newTime{ | |
26 | |
27 } | |
28 | |
29 | |
30 -(void)cancelTimers{ | |
31 | |
32 if(self.theCurrentTimer){ | |
33 [self.theCurrentTimer invalidate]; | |
34 self.theCurrentTimer = nil; | |
35 } | |
36 } | |
37 | |
38 -(void)setTimer:(int)numMillisec{ | |
39 self.theCurrentTimer = [NSTimer scheduledTimerWithTimeInterval:numMillisec target:self selector:@selector(callTheCallback) userInfo:nil repeats:NO]; | |
40 | |
41 } | |
42 -(void)callTheCallback{ | |
43 NSLog(@"iostimer callback"); | |
44 } | |
45 | |
46 | |
47 @end |