annotate IntroViewController.mm @ 49:178642d134a7 tip

xtra files
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Wed, 01 May 2013 17:34:33 +0100
parents a4908ad8c78e
children
rev   line source
rt300@24 1 //
rt300@24 2 // IntroViewController.m
rt300@24 3 // sonicZoom
rt300@24 4 //
rt300@24 5 // Created by Robert Tubb on 29/01/2013.
rt300@24 6 //
rt300@24 7 //
rt300@24 8
rt300@24 9 #import "IntroViewController.h"
rt300@24 10 #import "testApp.h"
rt300@24 11 @interface IntroViewController ()
rt300@24 12
rt300@24 13 @end
rt300@24 14
rt300@24 15 @implementation IntroViewController
rt300@24 16
rt300@24 17 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
rt300@24 18 {
rt300@24 19 self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
rt300@24 20 if (self) {
rt300@24 21 // Custom initialization
rt300@24 22 }
rt300@24 23 return self;
rt300@24 24 }
rt300@24 25
rt300@24 26 - (void)viewDidLoad
rt300@24 27 {
rt300@24 28 [super viewDidLoad];
rt300@24 29 // Do any additional setup after loading the view from its nib.
rt300@24 30 }
rt300@24 31
rt300@24 32 - (void)didReceiveMemoryWarning
rt300@24 33 {
rt300@24 34 [super didReceiveMemoryWarning];
rt300@24 35 // Dispose of any resources that can be recreated.
rt300@24 36 }
rt300@24 37
rt300@24 38 - (void)setAppRef:(id)theOFApp{
rt300@24 39 self.theOFAppRef = theOFApp;
rt300@24 40
rt300@24 41 }
rt300@24 42
rt300@24 43 - (IBAction)show:(id)sender
rt300@24 44 {
rt300@24 45 self.theOFAppRef = sender;
rt300@24 46 self.view.hidden = NO;
rt300@24 47 }
rt300@24 48 - (IBAction)hide:(id)sender
rt300@24 49 {
rt300@24 50 self.view.hidden = YES;
rt300@24 51 ((testApp *)self.theOFAppRef)->introHidden(YES);
rt300@24 52
rt300@24 53 }
rt300@24 54 - (IBAction)disagree:(id)sender
rt300@24 55 {
rt300@24 56 // shut down the app
rt300@24 57 self.view.hidden = YES;
rt300@24 58 ((testApp *)self.theOFAppRef)->introHidden(NO);
rt300@24 59 }
rt300@24 60 - (void)dealloc {
rt300@24 61 [_text release];
rt300@24 62 [super dealloc];
rt300@24 63 }
rt300@24 64 - (void)viewDidUnload {
rt300@24 65 [self setText:nil];
rt300@24 66 [super viewDidUnload];
rt300@24 67 }
rt300@24 68 @end