Mercurial > hg > soniczoomios
comparison TimedSessionController.mm @ 33:92dba082d957
Added trail and EVALUATION_POINT event type.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 26 Mar 2013 18:41:42 +0000 |
parents | 23ef179c3748 |
children |
comparison
equal
deleted
inserted
replaced
32:ab7c86d0f3d8 | 33:92dba082d957 |
---|---|
16 int orders[6][3] = {{0,1,2},{0,2,1},{1,0,2},{1,2,0},{2,0,1},{2,1,0}}; | 16 int orders[6][3] = {{0,1,2},{0,2,1},{1,0,2},{1,2,0},{2,0,1},{2,1,0}}; |
17 int theOrder; | 17 int theOrder; |
18 int scount; | 18 int scount; |
19 | 19 |
20 NSArray *alertMessages = [NSArray arrayWithObjects: | 20 NSArray *alertMessages = [NSArray arrayWithObjects: |
21 @"Thanks, now try the sliders only", | 21 @"Now try the sliders only.", |
22 @"Thanks, now try the sliders and the Zoomer together", | 22 @"Now try the sliders and the Zoomer together.", |
23 @"Thanks, now try the zoomer only", | 23 @"Now try the zoomer only.", |
24 @"Thanks, now please take the questionnaire",nil]; | 24 @"Now please take the questionnaire.",nil]; |
25 | 25 |
26 // nicer if it was initWithAppRef ? | 26 // nicer if it was initWithAppRef ? |
27 - (void)setAppRef:(id)theOFApp{ | 27 - (void)setAppRef:(id)theOFApp{ |
28 self.theOFAppRef = theOFApp; | 28 self.theOFAppRef = theOFApp; |
29 theOrder = arc4random() % 6; | 29 theOrder = arc4random() % 6; |
32 -(void)startTimer{ | 32 -(void)startTimer{ |
33 // SHOW FIRST PROMPT | 33 // SHOW FIRST PROMPT |
34 NSString *themessage; | 34 NSString *themessage; |
35 themessage = [alertMessages objectAtIndex:orders[theOrder][0]]; | 35 themessage = [alertMessages objectAtIndex:orders[theOrder][0]]; |
36 UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Thanks!" | 36 UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Thanks!" |
37 message:themessage | 37 message:[themessage stringByAppendingString:@" Press play to start sound."] |
38 delegate:self | 38 delegate:self |
39 cancelButtonTitle:@"Continue" | 39 cancelButtonTitle:@"Continue" |
40 otherButtonTitles:nil]; | 40 otherButtonTitles:nil]; |
41 alert.alertViewStyle = UIAlertViewStyleDefault; | 41 alert.alertViewStyle = UIAlertViewStyleDefault; |
42 [alert show]; | 42 [alert show]; |