mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Atom.open returns the AtomController created
This commit is contained in:
@@ -12,7 +12,7 @@ class ClientHandler;
|
||||
CefRefPtr<ClientHandler> _clientHandler;
|
||||
}
|
||||
|
||||
- (void)open:(NSString *)path;
|
||||
- (AtomController *)open:(NSString *)path;
|
||||
- (IBAction)runSpecs:(id)sender;
|
||||
- (IBAction)runBenchmarks:(id)sender;
|
||||
|
||||
|
||||
@@ -60,8 +60,8 @@
|
||||
CefBrowser::CreateBrowser(window_info, _clientHandler.get(), [indexURLString UTF8String], settings);
|
||||
}
|
||||
|
||||
- (void)open:(NSString *)path {
|
||||
[[AtomController alloc] initWithPath:path atomContext:[self atomContext]];
|
||||
- (AtomController *)open:(NSString *)path {
|
||||
return [[AtomController alloc] initWithPath:path atomContext:[self atomContext]];
|
||||
}
|
||||
|
||||
- (IBAction)runSpecs:(id)sender {
|
||||
|
||||
Reference in New Issue
Block a user