Permalink
Browse files

touches limit macro

  • Loading branch information...
1 parent d9a09f0 commit 757a26855f3aeb47b0f72862ec1cb1f9ca3107e0 @cnharris10 cnharris10 committed May 7, 2012
View
@@ -18,6 +18,7 @@
#define NUMBER_OF_NOTES 15
#define ICON_COUNT 7
+#define MAXTOUCHES 4
typedef struct image_view_metadata {
int height;
View
@@ -14,16 +14,17 @@ @implementation StaffController
@synthesize canvas;
@synthesize staffView;
+@synthesize topMenu;
@synthesize lines;
@synthesize spaces;
@synthesize dots;
@synthesize notes;
@synthesize instrumentsButton;
@synthesize sharpFlatButton;
-@synthesize topMenu;
@synthesize popoverView;
@synthesize popoverController;
+
-(id)init{
[self viewDidLoad];
return self;
@@ -509,7 +510,7 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
//NSLog(@"# of Touches: %d",[touches count]);
NSArray *allTouches = [touches allObjects];
AppDelegate *mainDelegate = (AppDelegate*)[[UIApplication sharedApplication]delegate];
- if(numtouches < 5){
+ if(numtouches < MAXTOUCHES){
for (UITouch *touch in allTouches)
{
if(touch.view.tag > 0){

0 comments on commit 757a268

Please sign in to comment.