mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Use instantiateWithOwner:topLevelObjects
Removes deprecation warnings
This commit is contained in:
@@ -29,7 +29,7 @@ int AtomMain(int argc, char* argv[]) {
|
||||
|
||||
NSString *mainNibName = [infoDictionary objectForKey:@"NSMainNibFile"];
|
||||
NSNib *mainNib = [[NSNib alloc] initWithNibNamed:mainNibName bundle:[NSBundle bundleWithIdentifier:@"com.github.atom.framework"]];
|
||||
[mainNib instantiateNibWithOwner:application topLevelObjects:nil];
|
||||
[mainNib instantiateWithOwner:application topLevelObjects:nil];
|
||||
|
||||
CefRunMessageLoop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user