Commit c96d62a

mo khan <mo@mokhan.ca>
2013-05-10 01:17:42
tell the truth
1 parent a05c1d9
Changed files (4)
2013-05-07
People
People
People.xcodeproj
project.xcworkspace
xcuserdata
2013-05-07/People/People/main.m
@@ -20,7 +20,9 @@ int main(int argc, const char * argv[])
         [newPerson setLastName:@"Khan"];
         NSLog(@"Hello, World! %@ %@", newPerson.firstName, newPerson.lastName);
         NSLog(@"%@", [newPerson putFirstAndLastTogether:newPerson.firstName]);
-        NSLog(@"%@", [newPerson fullName]);
+        NSLog(@"%@", [newPerson theTruth]);
+        
+        NSObject * item;
     }
     return 0;
 }
2013-05-07/People/People/Person.h
@@ -13,4 +13,5 @@
 @property (strong, nonatomic) NSString * lastName;
 -(NSString *)putFirstAndLastTogether:(NSString *)first;
 -(NSString *)fullName;
+-(NSString *)theTruth;
 @end
2013-05-07/People/People/Person.m
@@ -17,7 +17,11 @@
 
 -(NSString *)fullName
 {
-    NSString * result = [[NSString alloc]initWithFormat:@"%@ %@", self.firstName, self.lastName];
-    return result;
+    return [[NSString alloc]initWithFormat:@"%@ %@", self.firstName, self.lastName];
+}
+
+-(NSString *)theTruth
+{
+    return [[NSString alloc]initWithFormat:@"%@ is the boss!", self.fullName];
 }
 @end
2013-05-07/People/People.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate
Binary file