view TimedCallController.mm @ 42:2bd658b44c2d

buttons dont lite up back to menu shows in more appropriate times
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Mon, 08 Dec 2014 18:29:10 +0000
parents a223551fdc1f
children
line wrap: on
line source
//
//  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