mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
27 lines
826 B
Plaintext
27 lines
826 B
Plaintext
#import "include/cef_application_mac.h"
|
|
#import "native/atom_application.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
@autoreleasepool {
|
|
// TODO: Ask marshal why we need this?
|
|
// CefMainArgs mainArgs(argc, argv);
|
|
// CefRefPtr<CefApp> app;
|
|
//
|
|
// int exit_code = CefExecuteProcess(mainArgs, app.get());
|
|
// if (exit_code >= 0){
|
|
// return exit_code;
|
|
// }
|
|
|
|
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
|
AtomApplication *application = (AtomApplication *)[AtomApplication sharedApplication];
|
|
|
|
NSString *mainNibName = [infoDictionary objectForKey:@"NSMainNibFile"];
|
|
NSNib *mainNib = [[NSNib alloc] initWithNibNamed:mainNibName bundle:[NSBundle mainBundle]];
|
|
[mainNib instantiateNibWithOwner:application topLevelObjects:nil];
|
|
|
|
CefRunMessageLoop();
|
|
}
|
|
|
|
return 0;
|
|
}
|