I'm a little confused because I have a class that uses the this 1st main.m in its example code while my project uses the latter. I am having a whole lot of trouble getting the class to instance to with my applicationDidFinishLaunching and I think that these different main.m files might be the culprit. The .xib files between my project and the example project are identical as are the .plist settings for Main Nib name. The delegates are all linked up correctly
#import <UIKit/UIKit.h>
#import "MidiTestingAppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([MidiTestingAppDelegate class]));
}
}
And
#import <UIKit/UIKit.h>
int main(int argc, char *argv[])
{
#if __has_feature(objc_arc)
@autoreleasepool
{
int retVal = UIApplicationMain(argc, argv, nil, nil);
return retVal;
}
#else
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
#endif
}
I assume that the former goes right to the App Delegate while the latter loads the UIApplication directly? Is that correct?