From 1a4627442f8edeca38fbcc238cb9769530659b05 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 20 Mar 2012 16:25:55 -0700 Subject: [PATCH] Atom.open returns the AtomController created --- Atom/src/Atom.h | 2 +- Atom/src/Atom.mm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Atom/src/Atom.h b/Atom/src/Atom.h index 1f4f314c1..2e7a2297e 100755 --- a/Atom/src/Atom.h +++ b/Atom/src/Atom.h @@ -12,7 +12,7 @@ class ClientHandler; CefRefPtr _clientHandler; } -- (void)open:(NSString *)path; +- (AtomController *)open:(NSString *)path; - (IBAction)runSpecs:(id)sender; - (IBAction)runBenchmarks:(id)sender; diff --git a/Atom/src/Atom.mm b/Atom/src/Atom.mm index b3f2449ed..9afc909be 100755 --- a/Atom/src/Atom.mm +++ b/Atom/src/Atom.mm @@ -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 {