From 78a01162f69e15390a5bd29afb44f9d04c285593 Mon Sep 17 00:00:00 2001 From: invious Date: Fri, 22 Jul 2016 17:28:34 -0400 Subject: [PATCH] init --- objc-xcode-warnings-errors/FISAppDelegate.m | 53 +++++++++++---------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/objc-xcode-warnings-errors/FISAppDelegate.m b/objc-xcode-warnings-errors/FISAppDelegate.m index f269a95..1e117d2 100644 --- a/objc-xcode-warnings-errors/FISAppDelegate.m +++ b/objc-xcode-warnings-errors/FISAppDelegate.m @@ -9,40 +9,41 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( NSString *unused = @"This variable generates a warning because it is unused."; -// NSLog(@"%@", unused); + NSLog(@"%@", unused); -// NSInteger *i = 0; -// NSLog(@"i: %li", i); + NSInteger i = 12; + NSLog(@"i: %li", i); -// NSInteger x = i + 1; -// NSLog(@"x: %li", x); + NSInteger x = i + 1; + NSLog(@"x: %li", x); NSLog(@"Anything after the return statement will not get executed."); return YES; // this line ends the method NSLog(@"Take note that this line doesn't print to the console."); -} - -//NSString *message = @"Even though they don't belong here, the compiler won't actually complain about string literals or primitives defined outside of a method body (which is held by curly braces {...} ), but..."; - -//NSInteger j = 0; -//BOOL itIsKnownKhaleesi = YES; - -//NSLog(@"...any statements containing function calls, operations, or method calls will produce errors."); - - - -//NSLog(@"%@", message); - - - -//j++; - -//itIsKnownKhaleesi = NO; - - -//NSString *notLocal = [NSString stringWithString:@"Which means the variables above, while permitted, can't be used in the way that you intend."]; + NSString *message = @"Even though they don't belong here, the compiler won't actually complain about string literals or primitives defined outside of a method body (which is held by curly braces {...} ), but..."; + + NSInteger j = 0; + BOOL itIsKnownKhaleesi = YES; + + NSLog(@"...any statements containing function calls, operations, or method calls will produce errors."); + + + + + NSLog(@"%@", message); + + + + j++; + + itIsKnownKhaleesi = NO; + + + NSString *notLocal = [NSString stringWithString:@"Which means the variables above, while permitted, can't be used in the way that you intend."]; + +} @end