I'm trying out CorePlot in a small personal project to draw some bar graphs. I started the project using Xcode 4.3.2 and ARC, thinking it'd make my life easier... The problem is, when using GCC 4.2 - the compiler doesn't recognise @autorelease
. I got past that using:
int retVal = 0;
// @autoreleasepool {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([kerrAppDelegate class]));
[pool drain];
// }
return retVal;
However I get the error saying that NSAutoreleasePool isn't available in ARC... Does anyone have any recommendations?