comparison TopButtonViewController.mm @ 26:2e1fdac115af

Help view.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 01 Feb 2013 18:31:43 +0000
parents f42a00e3f22d
children ae4d2c3ce5e0
comparison
equal deleted inserted replaced
25:f42a00e3f22d 26:2e1fdac115af
101 101
102 - (IBAction)randomise:(id)sender { 102 - (IBAction)randomise:(id)sender {
103 ((testApp *)self.theOFAppRef)->randomise(); 103 ((testApp *)self.theOFAppRef)->randomise();
104 } 104 }
105 105
106 - (IBAction)helpPressed:(id)sender {
107 [self.helpViewController.view show:self];
108
109 self.helpViewController = [[HelpViewController alloc] initWithNibName:@"HelpViewController" bundle:nil];
110 [self.view addSubview:self.helpViewController.view];
111
112 [self.helpViewController show:self];
113 }
114
106 - (IBAction)show:(id)sender 115 - (IBAction)show:(id)sender
107 { 116 {
108 self.theOFAppRef = sender; 117 self.theOFAppRef = sender;
109 self.view.hidden = NO; 118 self.view.hidden = NO;
110 } 119 }
111 120
121 /*
122 helpViewController = [[HelpViewController alloc] initWithNibName:@"HelpViewController" bundle:nil];
123 [ofxiPhoneGetGLParentView() addSubview:helpViewController.view];
124 [helpViewController hide:(id)this];
125 */
112 - (void)dealloc { 126 - (void)dealloc {
127 [_helpViewController release];
113 [_playButton release]; 128 [_playButton release];
114 [_pauseButton release]; 129 [_pauseButton release];
115 [_qButton release]; 130 [_qButton release];
116 [super dealloc]; 131 [super dealloc];
117 } 132 }