mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-14 04:29:04 +03:00
18 lines
588 B
Plaintext
18 lines
588 B
Plaintext
#import "include/cef_application_mac.h"
|
|
#import "native/atom_application.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
@autoreleasepool {
|
|
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;
|
|
}
|