Atom.open returns the AtomController created

This commit is contained in:
Corey Johnson
2012-03-20 16:25:55 -07:00
parent fc1b350efd
commit 1a4627442f
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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 {