annotate TimedCallController.mm @ 52:89944ab3e129 tip

fix oF linker errors ios8
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Tue, 03 Feb 2015 13:18:23 +0000
parents a223551fdc1f
children
rev   line source
rt300@0 1 //
rt300@0 2 // TimedSessionController.m
rt300@0 3 // sonicZoom
rt300@0 4 //
rt300@0 5 // Created by Robert Tubb on 18/02/2013.
rt300@0 6 //
rt300@0 7 //
rt300@0 8
rt300@0 9 #import "TimedCallController.h"
rt300@0 10 @interface TimedCallController()
rt300@0 11 // private stuff
rt300@0 12 @end
rt300@0 13
rt300@0 14 @implementation TimedCallController
rt300@0 15
rt300@0 16
rt300@0 17 // nicer if it was initWithAppRef ?
rt300@0 18 - (void)setAppRef:(id)theOFApp{
rt300@0 19 self.theOFAppRef = theOFApp;
rt300@0 20
rt300@0 21 }
rt300@0 22 -(void)startTimer{
rt300@0 23
rt300@0 24 }
rt300@0 25 -(void)resetTime:(int)newTime{
rt300@0 26
rt300@0 27 }
rt300@0 28
rt300@0 29
rt300@0 30 -(void)cancelTimers{
rt300@0 31
rt300@0 32 if(self.theCurrentTimer){
rt300@0 33 [self.theCurrentTimer invalidate];
rt300@0 34 self.theCurrentTimer = nil;
rt300@0 35 }
rt300@0 36 }
rt300@0 37
rt300@0 38 -(void)setTimer:(int)numMillisec{
rt300@0 39 self.theCurrentTimer = [NSTimer scheduledTimerWithTimeInterval:numMillisec target:self selector:@selector(callTheCallback) userInfo:nil repeats:NO];
rt300@0 40
rt300@0 41 }
rt300@0 42 -(void)callTheCallback{
rt300@0 43 NSLog(@"iostimer callback");
rt300@0 44 }
rt300@0 45
rt300@0 46
rt300@0 47 @end