Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed some compiler warnings

  • Loading branch information...
commit cc53616e0e54df8bc0c8a9695ee57efd3f95c64a 1 parent e9bd394
Matthias Tretter authored June 02, 2011
BIN  .DS_Store
Binary file not shown
12  DCIntrospect/DCFrameView.m
@@ -82,12 +82,12 @@ - (void)drawRect:(CGRect)rect
82 82
 													blue:(arc4random() % 256) / 256.0
83 83
 												   alpha:1.0];
84 84
 			[randomColor set];
85  
-			CGRect rect = [value CGRectValue];
86  
-			rect = CGRectMake(rect.origin.x + 0.5,
87  
-							  rect.origin.y + 0.5,
88  
-							  rect.size.width - 1.0,
89  
-							  rect.size.height - 1.0);
90  
-			CGContextStrokeRect(context, rect);
  85
+			CGRect valueRect = [value CGRectValue];
  86
+			valueRect = CGRectMake(valueRect.origin.x + 0.5,
  87
+                                   valueRect.origin.y + 0.5,
  88
+                                   valueRect.size.width - 1.0,
  89
+                                   valueRect.size.height - 1.0);
  90
+			CGContextStrokeRect(context, valueRect);
91 91
 		}
92 92
 		return;
93 93
 	}
17  DCIntrospect/DCIntrospect.m
@@ -5,9 +5,16 @@
5 5
 //
6 6
 
7 7
 #import "DCIntrospect.h"
8  
-
9 8
 #import <dlfcn.h>
10 9
 
  10
+
  11
+@interface DCIntrospect ()
  12
+
  13
+- (void)takeFirstResponder;
  14
+
  15
+@end
  16
+
  17
+
11 18
 DCIntrospect *sharedInstance = nil;
12 19
 
13 20
 @implementation DCIntrospect
@@ -336,11 +343,11 @@ - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range r
336 343
 						 animations:^{
337 344
 							 self.frameView.touchPointLabel.alpha = !self.frameView.touchPointLabel.alpha;
338 345
 						 } completion:^(BOOL finished) {
339  
-							 NSString *string = [NSString stringWithFormat:@"Coordinates are %@", (self.frameView.touchPointLabel.alpha) ? @"on" : @"off"];
  346
+							 NSString *coordinatesString = [NSString stringWithFormat:@"Coordinates are %@", (self.frameView.touchPointLabel.alpha) ? @"on" : @"off"];
340 347
 							 if (self.showStatusBarOverlay)
341  
-								 [self showTemporaryStringInStatusBar:string];
  348
+								 [self showTemporaryStringInStatusBar:coordinatesString];
342 349
 							 else
343  
-								 NSLog(@"DCIntrospect: %@", string);
  350
+								 NSLog(@"DCIntrospect: %@", coordinatesString);
344 351
 						 }];
345 352
 		return NO;
346 353
 	}
@@ -1350,7 +1357,7 @@ - (void)logPropertiesForObject:(id)object
1350 1357
 		[allTargets enumerateObjectsUsingBlock:^(id target, BOOL *stop)
1351 1358
 		 {
1352 1359
 			 NSArray *actions = [control actionsForTarget:target forControlEvent:controlEvents];
1353  
-			 [actions enumerateObjectsUsingBlock:^(id action, NSUInteger idx, BOOL *stop)
  1360
+			 [actions enumerateObjectsUsingBlock:^(id action, NSUInteger idx, BOOL *stop2)
1354 1361
 			  {
1355 1362
 				  [outputString appendFormat:@"    target: %@ action: %@\n", target, action];
1356 1363
 			  }];
BIN  DCIntrospectDemo/.DS_Store
Binary file not shown
4  DCIntrospectDemo/DCIntrospectDemo.xcodeproj/project.pbxproj
@@ -277,6 +277,8 @@
277 277
 				GCC_DYNAMIC_NO_PIC = NO;
278 278
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
279 279
 				GCC_PREFIX_HEADER = "DCIntrospectDemo/DCIntrospectDemo-Prefix.pch";
  280
+				GCC_WARN_SHADOW = YES;
  281
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
280 282
 				INFOPLIST_FILE = "DCIntrospectDemo/DCIntrospectDemo-Info.plist";
281 283
 				PRODUCT_NAME = "$(TARGET_NAME)";
282 284
 				WRAPPER_EXTENSION = app;
@@ -290,6 +292,8 @@
290 292
 				COPY_PHASE_STRIP = YES;
291 293
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
292 294
 				GCC_PREFIX_HEADER = "DCIntrospectDemo/DCIntrospectDemo-Prefix.pch";
  295
+				GCC_WARN_SHADOW = YES;
  296
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
293 297
 				INFOPLIST_FILE = "DCIntrospectDemo/DCIntrospectDemo-Info.plist";
294 298
 				PRODUCT_NAME = "$(TARGET_NAME)";
295 299
 				VALIDATE_PRODUCT = YES;

0 notes on commit cc53616

Please sign in to comment.
Something went wrong with that request. Please try again.