Creating a command line tool of the foundation type, it’s like Xcode refuses to acknowledge @autoreleasepool as valid. Instead I’m having to leave the default template in place and continue on, so it looks like:
int main (int argc, const char * argv)
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; // insert code here... NSLog(@"Hello, World!"); [pool drain]; return 0;
I just delete the comment and “hello world” statement. I’ve double checked that I set up the creation correctly. What am I doing wrong?