Mercurial > hg > tweakathon2ios
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TimedCallController.mm Fri Oct 10 11:46:42 2014 +0100 @@ -0,0 +1,47 @@ +// +// TimedSessionController.m +// sonicZoom +// +// Created by Robert Tubb on 18/02/2013. +// +// + +#import "TimedCallController.h" +@interface TimedCallController() + // private stuff +@end + +@implementation TimedCallController + + +// nicer if it was initWithAppRef ? +- (void)setAppRef:(id)theOFApp{ + self.theOFAppRef = theOFApp; + +} +-(void)startTimer{ + +} +-(void)resetTime:(int)newTime{ + +} + + +-(void)cancelTimers{ + + if(self.theCurrentTimer){ + [self.theCurrentTimer invalidate]; + self.theCurrentTimer = nil; + } +} + +-(void)setTimer:(int)numMillisec{ + self.theCurrentTimer = [NSTimer scheduledTimerWithTimeInterval:numMillisec target:self selector:@selector(callTheCallback) userInfo:nil repeats:NO]; + +} +-(void)callTheCallback{ + NSLog(@"iostimer callback"); +} + + +@end