Created
October 17, 2008 11:09
-
-
Save jcf/17393 to your computer and use it in GitHub Desktop.
Helping Geoff with a Cocoa complaint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main (int argc, const char * argv[]) { | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
int number = 3; | |
NSString * reason = [[NSString alloc] autorelease]; | |
switch (number) | |
{ | |
case 2: | |
NSLog(@"Number => 2"); | |
default: | |
reason = [NSString stringWithFormat:@"%@", @"foobar"]; | |
} | |
[pool drain]; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment