I noticed in recent versions of Xcode, where ARC is used by default, the main.m Xcode file is generated for you when you start a new project, uses NSStringFromClass([AppDelegate class]) as a parameter for the application delegate in UIApplicationMain, and not just @"AppDelegate" or even just nil
New way:
@autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); }
Old way:
@autoreleasepool { int retVal = UIApplicationMain(argc, argv, nil, nil); return retVal; }
I'm just wondering if there is a reason for this? It seems to me that it made me a little wise, but I hope that you are satisfied directly.
Toby
source share