comparison TopButtonViewController.mm @ 39:df7c08faf541

MIDI, small improvements.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Thu, 11 Apr 2013 16:56:21 +0100
parents 0dfe9e0c01aa
children a1e75b94c505
comparison
equal deleted inserted replaced
38:0dfe9e0c01aa 39:df7c08faf541
136 136
137 - (IBAction)smoothSwitchChanged:(id)sender { 137 - (IBAction)smoothSwitchChanged:(id)sender {
138 UISwitch * smoothswitch = (UISwitch *)sender; 138 UISwitch * smoothswitch = (UISwitch *)sender;
139 NSLog(@"SMOOTH SWITCH %d", smoothswitch.on); 139 NSLog(@"SMOOTH SWITCH %d", smoothswitch.on);
140 ((testApp *)self.theOFAppRef)->setInterp(smoothswitch.on); 140 ((testApp *)self.theOFAppRef)->setInterp(smoothswitch.on);
141 141
142 if(smoothswitch.on){
143 self.savePresetButton.enabled = NO;
144
145 }else{
146 self.savePresetButton.enabled = YES;
147 }
148 } 142 }
149 143
150 - (IBAction)show:(id)sender 144 - (IBAction)show:(id)sender
151 { 145 {
152 self.theOFAppRef = sender; 146 self.theOFAppRef = sender;