cocoa相关资料NSApplicationMain()函数,其实功能如下:voidNSApplicationMain(intargc,char*argv[]){[NSApplicationsharedApplication];[NSBundleloadNibNamed:@"MainMenu"owner:NSApp];[NSApprun];}