Files
atom/Atom/src/main.mm
Corey Johnson & Nathan Sobo 7e6132f5b7 Redo Xcode project FROM SCRATCH
2012-02-29 15:23:17 -08:00

20 lines
715 B
Plaintext

#import <Cocoa/Cocoa.h>
#include "include/cef.h"
int main(int argc, char* argv[]) {
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
Class principalClass = NSClassFromString([infoDictionary objectForKey:@"NSPrincipalClass"]);
NSApplication *application = [principalClass sharedApplication];
NSString *mainNibName = [infoDictionary objectForKey:@"NSMainNibFile"];
NSNib *mainNib = [[NSNib alloc] initWithNibNamed:mainNibName bundle:[NSBundle mainBundle]];
[mainNib instantiateNibWithOwner:application topLevelObjects:nil];
// Run the application message loop.
CefRunMessageLoop();
// Don't put anything below this line because it won't be executed.
return 0;
}