Mercurial > hg > soniczoomios
diff Question.m @ 36:a42903c61558
Added sliderview (not operational though)
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 09 Apr 2013 13:22:28 +0100 |
parents | 23ef179c3748 |
children | 79c129e500e1 |
line wrap: on
line diff
--- a/Question.m Mon Apr 08 17:23:13 2013 +0100 +++ b/Question.m Tue Apr 09 13:22:28 2013 +0100 @@ -43,6 +43,8 @@ // pseudo static variable if(type == AGREE_DISAGREE){ [Question setCount:NUM_CHOICES]; + + // potential leak return [[NSArray alloc] initWithObjects: @"Strongly agree",@"Agree", @"Neither agree nor disagree", @"Disagree",@"Strongly disagree", nil]; @@ -50,6 +52,7 @@ }else if(type == SLIDERS_ZOOMER){ [Question setCount:NUM_CHOICES]; + // potential leak return [[NSArray alloc] initWithObjects: @"definitely the Sliders", @"maybe the Sliders", @"Neither/Both equal", @"maybe the Zoomer", @"definitely the Zoomer", nil];