Hi guys,
I opened up XCode just now and started a foundation project and the code that popped up was this:
Instead of this:
I do not have ARC turned on, how come its different? It does it on both machines. Did something happen I'm not aware of?
I opened up XCode just now and started a foundation project and the code that popped up was this:
Code:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
@autoreleasepool {
// insert code here...
NSLog(@"Hello, World!");
}
return 0;
}
Instead of this:
Code:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSLog(@"Hello, World!");
[pool drain];
return 0;
}
I do not have ARC turned on, how come its different? It does it on both machines. Did something happen I'm not aware of?