2012-08-21 02:25:17 +04:00
|
|
|
#import "include/cef_application_mac.h"
|
2012-08-28 00:21:59 +04:00
|
|
|
#import "native/atom_application.h"
|
2012-08-21 02:25:17 +04:00
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
2012-08-21 21:58:36 +04:00
|
|
|
@autoreleasepool {
|
2012-08-23 23:49:04 +04:00
|
|
|
// TODO: Ask marshal why we need this?
|
2012-08-24 00:47:06 +04:00
|
|
|
// CefMainArgs mainArgs(argc, argv);
|
|
|
|
// CefRefPtr<CefApp> app;
|
|
|
|
//
|
2012-08-23 23:49:04 +04:00
|
|
|
// int exit_code = CefExecuteProcess(mainArgs, app.get());
|
|
|
|
// if (exit_code >= 0){
|
|
|
|
// return exit_code;
|
|
|
|
// }
|
2012-08-21 02:25:17 +04:00
|
|
|
|
2012-08-21 21:58:36 +04:00
|
|
|
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
2012-08-23 23:49:04 +04:00
|
|
|
AtomApplication *application = (AtomApplication *)[AtomApplication sharedApplication];
|
2012-08-21 21:58:36 +04:00
|
|
|
|
|
|
|
NSString *mainNibName = [infoDictionary objectForKey:@"NSMainNibFile"];
|
|
|
|
NSNib *mainNib = [[NSNib alloc] initWithNibNamed:mainNibName bundle:[NSBundle mainBundle]];
|
2012-08-23 23:49:04 +04:00
|
|
|
[mainNib instantiateNibWithOwner:application topLevelObjects:nil];
|
2012-08-21 21:58:36 +04:00
|
|
|
|
|
|
|
CefRunMessageLoop();
|
|
|
|
}
|
2012-08-21 02:25:17 +04:00
|
|
|
|
|
|
|
return 0;
|
2012-08-23 23:49:04 +04:00
|
|
|
}
|