annotate HelpViewController.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 // HelpViewController.m
rt300@0 3 // sonicZoom
rt300@0 4 //
rt300@0 5 // Created by Robert Tubb on 01/02/2013.
rt300@0 6 //
rt300@0 7 //
rt300@0 8
rt300@0 9 #import "HelpViewController.h"
rt300@0 10 #import "testApp.h"
rt300@0 11 @interface HelpViewController ()
rt300@0 12
rt300@0 13 @end
rt300@0 14
rt300@0 15 @implementation HelpViewController
rt300@0 16
rt300@0 17 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
rt300@0 18 {
rt300@0 19 self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
rt300@0 20 if (self) {
rt300@0 21 // Custom initialization
rt300@0 22 }
rt300@0 23 return self;
rt300@0 24 }
rt300@0 25
rt300@0 26 - (void)viewDidLoad
rt300@0 27 {
rt300@0 28 [super viewDidLoad];
rt300@0 29 // Do any additional setup after loading the view from its nib.
rt300@0 30 }
rt300@0 31
rt300@0 32 - (void)didReceiveMemoryWarning
rt300@0 33 {
rt300@0 34 [super didReceiveMemoryWarning];
rt300@0 35 // Dispose of any resources that can be recreated.
rt300@0 36 }
rt300@0 37
rt300@0 38 - (void)setAppRef:(id)theOFApp{
rt300@0 39 self.theOFAppRef = theOFApp;
rt300@0 40
rt300@0 41 }
rt300@0 42 -(IBAction)show:(id)sender{
rt300@0 43 self.view.hidden = NO;
rt300@0 44 }
rt300@0 45
rt300@0 46 - (IBAction)hide:(id)sender
rt300@0 47 {
rt300@0 48 self.view.hidden = YES;
rt300@0 49 ((testApp *)self.theOFAppRef)->helpHidden();
rt300@0 50
rt300@0 51
rt300@0 52 }
rt300@0 53 @end