Permalink
Browse files

Turned chattyness back on, removed some of the red rectangles of doom

  • Loading branch information...
Mark Dalrymple
Mark Dalrymple committed Jan 20, 2013
1 parent f279a4b commit 7de8ab84d9f6cec8cea6fcb5b159c381339984a9
Showing with 3 additions and 5 deletions.
  1. +2 −4 Classes/BWGestureTrackView.m
  2. +1 −1 Classes/BWTouchTrackView.m
@@ -145,7 +145,8 @@ - (void) observeValueForKeyPath: (NSString *) keyPath
if (context == (__bridge void *)self
&& [keyPath isEqualToString: @"state"]) {
- NSNumber *stateNumber = change[@"new"];
+ // NSNumber *stateNumber = change[@"new"];
+ NSNumber *stateNumber = [change objectForKey: @"new"];
UIGestureRecognizerState state = stateNumber.integerValue;
[self recordState: state forRecognizer: object];
@@ -266,9 +267,6 @@ - (void) drawRecognizer: (UIGestureRecognizer *) recognizer
NSString *initial = [NSString stringWithFormat: @"%s",
g_stateInitials[thing.state]];
[self drawText: initial inRect: labelRect];
-
- [[UIColor redColor] set];
- UIRectFrame (labelRect);
}
// Draw the action triggers
@@ -11,7 +11,7 @@
kStateScrolledDrawback
} TrackingState;
-static const BOOL kLogTouchActivity = NO; // Sometimes can be too chatty.
+static const BOOL kLogTouchActivity = YES; // Sometimes can be too chatty.
static const CGFloat kPromptTextSize = 36.0;
static const CGFloat kTrackLineWidth = 5.0;

0 comments on commit 7de8ab8

Please sign in to comment.