Permalink
Browse files

Use same class

  • Loading branch information...
1 parent 84155f8 commit bfff3fe9c0fbf07d18dba8c3c7c003daa846a392 @mudphone committed Mar 27, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 ObjcPlayground/ObjcPlayground/PDCViewController.m
@@ -37,8 +37,13 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
- (void)playInUhPlayground
{
- if (YES) NSLog(@"Name of class is: %@", [self nameOfClass:[NSObject class]]);
- if (YES) [self printMethodsOfClass:[NSString class]];
+ Class theClass = [NSObject class];
+
+ // Print name of class:
+ if (YES) NSLog(@"Name of class is: %@", [self nameOfClass:theClass]);
+
+ // Print methods of class:
+ if (YES) [self printMethodsOfClass:theClass];
}
- (NSString *)nameOfClass:(Class)class

0 comments on commit bfff3fe

Please sign in to comment.