Mercurial > hg > soniczoomios
comparison TopButtonViewController.mm @ 37:8ed7522deaaa
Interpolation.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 09 Apr 2013 17:14:31 +0100 |
parents | a42903c61558 |
children | 0dfe9e0c01aa |
comparison
equal
deleted
inserted
replaced
36:a42903c61558 | 37:8ed7522deaaa |
---|---|
85 presetManager.showNameDialog(); | 85 presetManager.showNameDialog(); |
86 } | 86 } |
87 | 87 |
88 - (IBAction)lockSequencePressed:(id)sender { | 88 - (IBAction)lockSequencePressed:(id)sender { |
89 UIBarButtonItem *button = (UIBarButtonItem *)sender; | 89 UIBarButtonItem *button = (UIBarButtonItem *)sender; |
90 if([button.title isEqualToString:@"Lock Sequence (X)"]){ | 90 if([button.title isEqualToString:@"Lock X"]){ |
91 ((testApp *)self.theOFAppRef)->lockSequencerPressed(true); | 91 ((testApp *)self.theOFAppRef)->lockSequencerPressed(true); |
92 button.title = @"Unlock Sequence (X)"; | 92 button.title = @"Unlock X"; |
93 }else if([button.title isEqualToString:@"Unlock Sequence (X)"]){ | 93 }else if([button.title isEqualToString:@"Unlock X"]){ |
94 ((testApp *)self.theOFAppRef)->lockSequencerPressed(false); | 94 ((testApp *)self.theOFAppRef)->lockSequencerPressed(false); |
95 button.title = @"Lock Sequence (X)"; | 95 button.title = @"Lock X"; |
96 }else{ | 96 }else{ |
97 NSLog(@"button title error"); | 97 NSLog(@"button title error"); |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 - (IBAction)lockSynthPressed:(id)sender { | 101 - (IBAction)lockSynthPressed:(id)sender { |
102 UIBarButtonItem *button = (UIBarButtonItem *)sender; | 102 UIBarButtonItem *button = (UIBarButtonItem *)sender; |
103 if([button.title isEqualToString:@"Lock Synth (Y)"]){ | 103 if([button.title isEqualToString:@"Lock Y"]){ |
104 ((testApp *)self.theOFAppRef)->lockSynthPressed(true); | 104 ((testApp *)self.theOFAppRef)->lockSynthPressed(true); |
105 button.title = @"Unlock Synth (Y)"; | 105 button.title = @"Unlock Y"; |
106 }else if([button.title isEqualToString:@"Unlock Synth (Y)"]){ | 106 }else if([button.title isEqualToString:@"Unlock Y"]){ |
107 ((testApp *)self.theOFAppRef)->lockSynthPressed(false); | 107 ((testApp *)self.theOFAppRef)->lockSynthPressed(false); |
108 button.title = @"Lock Synth (Y)"; | 108 button.title = @"Lock Y"; |
109 }else{ | 109 }else{ |
110 NSLog(@"button title error"); | 110 NSLog(@"button title error"); |
111 } | 111 } |
112 } | 112 } |
113 -(void)unlockAll{ | 113 -(void)unlockAll{ |